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?`${e}`:"mathml"===n?`${e}`: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?`${e}`:"mathml"===n?`${e}`: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=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 s=0,a=this._past.length;s=t||r.id!==e.elements[n])&&(i=!1,o=0),i||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let s=this._future.length-1;s>=0;s--,n++){const o=this._future[s];i&&(n>=t||o.id!==e.elements[n])&&(i=!1,r=s),i||1!==o.type||o.removeResource(this.resourceLabel,this.strResource,0)}-1!==o&&(this._past=this._past.slice(0,o)),-1!==r&&(this._future=this._future.slice(r+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=r,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 r=this._acquireLocks(i);let s;try{s=t()}catch(a){return r(),n.dispose(),this._onError(a,e)}return s?s.then((()=>(r(),n.dispose(),o())),(t=>(r(),n.dispose(),this._onError(t,e)))):(r(),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 s of i.editStacks)s.getClosestPastElement()!==t&&o.push(s.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 r=[];for(const s of i.editStacks)s.locked&&r.push(s.resourceLabel);return r.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,r.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:r}=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(r===o.Cancel)return;if(r===o.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const s=this._checkWorkspaceUndo(e,t,i,!1);if(s)return s.returnValue;n=!0}let o;try{o=await this._invokeWorkspacePrepare(t)}catch(s){return this._onError(s,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return o.dispose(),r.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 r=o.getClosestPastElement();r&&(r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,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 r=o.sourceId!==t||o.confirmBeforeUndo;if(r&&!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 r=o.getClosestFutureElement();r&&(r.sourceId===e&&(!t||r.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 r=[];for(const s of i.editStacks)s.locked&&r.push(s.resourceLabel);return r.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,r.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(r){return this._onError(r,t)}const o=this._checkWorkspaceRedo(e,t,i,!0);if(o)return n.dispose(),o.returnValue;for(const s of i.editStacks)s.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 r=o.getClosestFutureElement();r&&(r.groupId===e&&(!t||r.groupOrder=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},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 rt(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(rt):!!e.exclusive)}class st{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 st(e.uri,e.getLanguageId(),n.uri,n.type):new st(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),rt(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,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},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,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},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,r,s){var l,c,d,u,h,g,p,f;super(),this._keybindingService=t,this._configurationService=i,this._openerService=n,this._instantiationService=r,this._accessibilityService=s,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))),r=Math.min(...t.map((e=>e.left))),s=n-r,a=o-i,l={top:i,right:n,bottom:o,left:r,width:s,height:a,center:{x:r+s/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+s/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,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},At=function(e,t){return function(i,n){t(i,n,e)}};let Ot=class{constructor(e,t,i,n,o,r){this._instantiationService=e,this._contextViewService=t,this._keybindingService=n,this._layoutService=o,this._accessibilityService=r,i.onDidShowContextMenu((()=>this.hideHover()))}showHover(e,t,i){var n,o,r,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===(r=e.persistence)||void 0===r?void 0:r.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 s.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 r=new It.y(e),s=this._keybindingService.resolveKeyboardEvent(r);s.getSingleModifierDispatchChords().some((e=>!!e))||0!==this._keybindingService.softDispatch(r,r.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:r}of i.rawConfiguration.overrides){const i=new Yt(n,r).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),r=[...this.keys],s=(null===(t=this.raw)||void 0===t?void 0:t.length)?[...this.raw]:[this];for(const a of e)if(s.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===r.indexOf(e)&&r.push(e)}return new Yt(n,r,o,s.every((e=>e instanceof Yt))?void 0:s)}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:r,hasExcludedProperties:s}=this.doParseRaw(e,t);this._configurationModel=new Yt(i,n,o,s?[e]:void 0),this._restrictedConfigurations=r||[]}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}`))),r=Object.keys(e),s=this.toOverrides(e,(e=>console.error(`Conflict in settings file ${this._name}: ${e}`)));return{contents:o,keys:r,overrides:s,restricted:n.restricted,hasExcludedProperties:n.hasExcludedProperties}}filter(e,t,i,n){var o,r,s;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===(r=n.exclude)||void 0===r?void 0:r.includes(d))||!(null===(s=n.include)||void 0===s?void 0:s.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,r,s,a,l,c,d,u,h){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=n,this.defaultConfiguration=o,this.policyConfiguration=r,this.applicationConfiguration=s,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,r=new Yt,s=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=r,this._folderConfigurations=s,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),r=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,s=new Set;for(const a of n.overrides)for(const t of a.identifiers)void 0!==n.getOverrideValue(e,t)&&s.add(t);return new Xt(e,t,n.getValue(e),s.size?[...s]: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,r)}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),r=this.parseConfigurationModel(e.workspace),s=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,r,s,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 r=o+n.length;if(r>=this._affectsConfigStr.length)return!1;const s=this._affectsConfigStr.charCodeAt(r);if(s!==this._markerCode1&&s!==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},ri={kind:1};function si(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,r=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 r=null;if(n.length<2)r=o;else{r=[];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),r=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(o,r,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 r=null,s=null;if(i){const[t]=e.getSingleModifierDispatchChords();r=t,s=t?[t]:[]}else[r]=e.getDispatchChords(),s=this._currentChords.map((({keypress:e})=>e));if(null===r)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,s,r);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(r,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,r,s){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=r,this.isBuiltinExtension=s}}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,r=this.delegate.anchorAlignment||0,s=this.delegate.anchorAxisAlignment||0;let a,l;const c=he.WN();if(0===s){const e={offset:t.top-c.pageYOffset,size:t.height,position:0===o?0:1},s={offset:t.left,size:t.width,position:0===r?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})&&(s.mode=yi.AVOID),l=Ii(c.innerWidth,i,s)}else{const e={offset:t.left,size:t.width,position:0===r?0:1},s={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})&&(s.mode=yi.AVOID),a=Ii(c.innerHeight,n,s)+c.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===o?"bottom":"top"),this.view.classList.add(0===r?"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,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},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 r=Zi(i,n,Vi);if(r)return[r,{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,r,s;for(let a=i.length-1;a>=0;a--){const l=i[a];if(t===l.filenameLowercase){o=l;break}if(l.filepattern&&(!r||l.filepattern.length>r.filepattern.length)){const i=l.filepatternOnPath?e:t;(null===(n=l.filepatternLowercase)||void 0===n?void 0:n.call(l,i))&&(r=l)}l.extension&&(!s||l.extension.length>s.extension.length)&&t.endsWith(l.extensionLowercase)&&(s=l)}return o||(r||(s||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(s){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,s)}}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 r=null!==o&&o.length>0;if(r&&null===o[0]);else{const t=(r?o[0]:null)||i;!r&&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),rn=i(94700),sn=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,r),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 r={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 s=this.scrollableElement.getDomNode();s.style.position="",this.styleScrollElement(s,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)(s,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:"",r=null!==(n=t.backgroundColor)&&void 0!==n?n:"",s=t.borderColor?`1px solid ${t.borderColor}`:"",a="5px",l=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=s,e.style.borderRadius=a,e.style.color=o,e.style.backgroundColor=r,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 r=e.scrollbarSliderActiveBackground;r&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ${r};\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 r=e.getMenuClassName?e.getMenuClassName():"";r&&(n.className+=" "+r),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 s=new a.SL,l=e.actionRunner||new on.Wi;l.onWillRun((t=>this.onActionRun(t,!e.skipTelemetry)),this,s),l.onDidRun(this.onDidActionRun,this,s),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,s),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,s);const c=(0,he.Jj)(n);return s.add((0,he.nm)(c,he.tw.BLUR,(()=>this.contextViewService.hideContextView(!0)))),s.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)(s,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,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},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,r){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=n,this.menuService=o,this.contextKeyService=r,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,sn.co),Dn(5,ye.i6)],Tn),function(e){function t(e){return e&&e.menuId instanceof sn.eH}function i(e,i,n){if(!t(e))return e;const{menuId:o,menuActionOptions:r,contextKeyService:s}=e;return{...e,getActions:()=>{const t=[];if(o){const e=i.createMenu(o,null!==s&&void 0!==s?s:n);(0,rn.LJ)(e,r,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,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},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):s.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 r of this._validators)if(!await r.shouldOpen(o,t))return!1;for(const r of this._openers){const i=await r.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(r){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,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},$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)}))),r=this.model.deltaDecorations(n,o);for(const s of i)this._map.delete(s);for(let s=0;s=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,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},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 ro{constructor(e,t,i,n,o,r,s,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=o,this.sha1=r,this.versionId=s,this.alternativeVersionId=a}}let so=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 r=Yn.D.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(r="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let s=oo;const a=e.eol;"\r\n"===a?s=2:"\n"===a&&(s=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:r,detectIndentation:c,defaultEOL:s,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}),r=this._getEOL(t,n);o=Gn._readModelOptions({editor:e,eol:r},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),r=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(r)&&n.computeSHA1(r)===e.sha1;if(o||e.sharesUndoRedoStack){for(const e of t.past)(0,Xn.e9)(e)&&e.matchesResource(i)&&e.setModel(r);for(const e of t.future)(0,Xn.e9)(e)&&e.matchesResource(i)&&e.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,(e=>(0,Xn.e9)(e)&&e.matchesResource(i))),o&&(r._overwriteVersionId(e.versionId),r._overwriteAlternativeVersionId(e.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const s=io(r.uri);if(this._models[s])throw new Error("ModelService: Cannot add model because it already exists!");const a=new no(r,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[s]=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,r+=i.heapSize(e.uri),i.setModel(e.uri));for(const i of t.future)(0,Xn.e9)(i)&&i.matchesResource(e.uri)&&(o=!0,r+=i.heapSize(e.uri),i.setModel(e.uri))}}const s=Gn.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(o)if(n||!(r>s)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(s-r),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>(0,Xn.e9)(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new ro(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,r,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),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);Gn._setModelOptionsForModel(e,r,o),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new ao}};so.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,so=Gn=eo([to(0,$.Ui),to(1,Ut.y),to(2,Fe.tJ),to(3,w.O),to(4,C.c_)],so);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,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},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,r]=this.getOrInstantiateProvider(e),s=this.visibleQuickAccess,l=null===s||void 0===s?void 0:s.descriptor;if(s&&r&&l===r)return e===r.prefix||(null===i||void 0===i?void 0:i.preserveValue)||(s.picker.value=e),void this.adjustValueSelection(s.picker,r,i);if(r&&!(null===i||void 0===i?void 0:i.preserveValue)){let t;if(s&&l&&l!==r){const e=s.value.substr(l.prefix.length);e&&(t=`${r.prefix}${e}`)}if(!t){const e=null===o||void 0===o?void 0:o.defaultFilterValue;e===co.Ry.LAST?t=this.lastAcceptedPickerValues.get(r):"string"===typeof e&&(t=`${r.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,r,i),d.placeholder=null===r||void 0===r?void 0:r.placeholder,d.quickNavigate=null===i||void 0===i?void 0:i.quickNavigateConfiguration,d.hideInput=!!d.quickNavigate&&!s,("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===r||void 0===r?void 0:r.contextKey,d.filterValue=e=>e.substring(r?r.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,r,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 r=new a.SL,s=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return r.add((0,a.OF)((()=>{s===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),r.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e);i!==t?this.show(e,{preserveValue:!0,providerOptions:o}):s.value=e}))),i&&r.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),r}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||"",r=bo.value.collator.compare(n,o);return bo.value.collatorIsNumeric&&0===r&&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,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};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,r,,s]=i;s?t.push({label:o,href:r,title:s}):t.push({label:o,href:r}),n=i.index+i[0].length}return n{he.cl(e)&&he.zB.stop(e,!0),i.callback(r.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)(s,null,i.disposables),t.appendChild(n)}}var Mo=i(71976),Fo=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};const Bo=he.$;class Ho{constructor(e,t,i,n,o,r,s){var a,l,c;this._checked=!1,this._hidden=!1,this.hasCheckbox=n,this.index=i,this.fireButtonTriggered=o,this.fireSeparatorButtonTriggered=r,this._onChecked=s,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")),r=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 s=he.R3(o,Bo(".quick-input-list-entry-keybinding"));t.keybinding=new vo.e(s,St.OS);const a=he.R3(r,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,r,s;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!==(r=e.item.iconPath.light)&&void 0!==r?r: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===(s=e.item)||void 0===s?void 0:s.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,r=new Ko;this.list=i.createList("QuickInput",this.container,o,[new Wo(n,i.hoverDelegate)],{identityProvider:{getId:e=>{var t,i,n,o,r,s,a,l;return null!==(l=null!==(s=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===(r=e.separator)||void 0===r?void 0:r.id)&&void 0!==s?s:null===(a=e.separator)||void 0===a?void 0:a.label)&&void 0!==l?l:""}},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:r}),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 s=new ii.rH(i.hoverDelegate.delay);this.disposables.push(this.list.onMouseOver((async e=>{var t;if(e.browserEvent.target instanceof HTMLAnchorElement)s.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 s.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)||s.cancel()}))),this.disposables.push(s),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(((r,s,a)=>{var l;const c=a>0?e[a-1]:void 0;if("separator"===s.type&&!s.buttons)return r;const d=new Ho(s,c,a,o,t,i,this._listElementChecked),u=r.length;return r.push(d),n.set(null!==(l=d.item)&&void 0!==l?l:d.separator,u),r}),[]),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,r,s,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!==(r=Uo(t,(0,fn.Ho)(n.saneLabel)))&&void 0!==r?r:void 0;const c=this.matchOnDescription&&null!==(s=(0,fn.Gt)(e,(0,fn.Ho)(n.saneDescription||"")))&&void 0!==s?s: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," "),r=i.length-o.length,s=$o(e,o);if(s)for(const a of s){const e=n[a.start+r]+r;a.start+=e,a.end+=e}return s}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,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},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 er=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}}}};er=Go([Zo(0,$.Ui),Zo(1,pt)],er);var tr=i(24511),ir=i(86829);const nr="done",or="active",rr="infinite",sr="infinite-long-running",ar="discrete";class lr 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()),lr.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(or,rr,sr,ar),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(nr),this.element.classList.contains(rr)?(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(ar,nr,sr),this.element.classList.add(or,rr),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(sr)}getContainer(){return this.element}}lr.LONG_RUNNING_INFINITE_THRESHOLD=1e4;var cr=i(93575);const dr=he.$;class ur 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,dr(".quick-input-box")),this.findInput=this._register(new cr.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 hr=he.$;class gr 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:s.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,hr(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const i=he.dS(t),n=he.R3(t,hr(".quick-input-titlebar")),o=this._register(new dn.o(n,{hoverDelegate:this.options.hoverDelegate}));o.domNode.classList.add("quick-input-left-action-bar");const r=he.R3(n,hr(".quick-input-title")),s=this._register(new dn.o(n,{hoverDelegate:this.options.hoverDelegate}));s.domNode.classList.add("quick-input-right-action-bar");const a=he.R3(t,hr(".quick-input-header")),l=he.R3(a,hr("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,hr(".quick-input-description")),d=he.R3(a,hr(".quick-input-and-message")),u=he.R3(d,hr(".quick-input-filter")),h=this._register(new ur(u,this.styles.inputBox,this.styles.toggle));h.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=he.R3(u,hr(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new ir.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,hr(".quick-input-count"));f.setAttribute("aria-live","polite");const m=new ir.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,hr(".quick-input-action")),_=this._register(new tr.z(v,this.styles.button));_.label=(0,Oe.NC)("ok","OK"),this._register(_.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const b=he.R3(a,hr(".quick-input-action")),y=this._register(new tr.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,hr(`#${this.idPrefix}message.quick-input-message`)),C=this._register(new lr(t,this.styles.progressBar));C.getContainer().classList.add("quick-input-progress");const S=he.R3(t,hr(".quick-input-html-widget"));S.tabIndex=-1;const x=he.R3(t,hr(".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:r,description1:x,description2:c,widget:S,rightActionBar:s,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 r=e=>{var i;r=n,null===(i=t.onKeyMods)||void 0===i||i.call(t,s.keyMods),n(e)};if(i.isCancellationRequested)return void r(void 0);const s=this.createQuickPick();let l;const c=[s,s.onDidAccept((()=>{if(s.canSelectMany)r(s.selectedItems.slice()),s.hide();else{const e=s.activeItems[0];e&&(r(e),s.hide())}})),s.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),s.onDidChangeSelection((e=>{if(!s.canSelectMany){const t=e[0];t&&(r(t),s.hide())}})),s.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{const t=s.items.indexOf(e.item);if(-1!==t){const e=s.items.slice(),i=e.splice(t,1),n=s.activeItems.filter((e=>e!==i[0])),o=s.keepScrollPosition;s.keepScrollPosition=!0,s.items=e,n&&(s.activeItems=n),s.keepScrollPosition=o}}}))),s.onDidTriggerSeparatorButton((e=>{var i;return null===(i=t.onDidTriggerSeparatorButton)||void 0===i?void 0:i.call(t,e)})),s.onDidChangeValue((e=>{!l||e||1===s.activeItems.length&&s.activeItems[0]===l||(s.activeItems=[l])})),i.onCancellationRequested((()=>{s.hide()})),s.onDidHide((()=>{(0,a.B9)(c),r(void 0)}))];s.title=t.title,s.canSelectMany=!!t.canPickMany,s.placeholder=t.placeHolder,s.ignoreFocusOut=!!t.ignoreFocusLost,s.matchOnDescription=!!t.matchOnDescription,s.matchOnDetail=!!t.matchOnDetail,s.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,s.quickNavigate=t.quickNavigate,s.hideInput=!!t.hideInput,s.contextKey=t.contextKey,s.busy=!0,Promise.all([e,t.activeItem]).then((([e,t])=>{l=t,s.busy=!1,s.items=e,s.canSelectMany&&(s.selectedItems=e.filter((e=>"separator"!==e.type&&e.picked))),l&&(s.activeItems=[l])})),s.show(),Promise.resolve(e).then(void 0,(e=>{o(e),s.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,r=o&&!he.b5(o);if(this.controller=null,this.onHideEmitter.fire(),o&&(o.style.display="none"),!r){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,gr.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 r=[];this.styles.pickerGroup.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.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)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const s=r.join("\n");s!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=s)}}}gr.MAX_WIDTH=600;var pr=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},fr=function(e,t){return function(i,n){t(i,n,e)}};let mr=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(er))},n=this._register(new gr({...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)}}}};mr=pr([fr(0,Le.TG),fr(1,ye.i6),fr(2,me.XE),fr(3,Ee),fr(4,$.Ui)],mr);var vr=i(81332),_r=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},br=function(e,t){return function(i,n){t(i,n,e)}};let yr=class extends mr{constructor(e,t,i,n,o,r){super(t,i,n,new Ie(e.getContainerDomNode(),o),r),this.host=void 0;const s=Cr.get(e);if(s){const t=s.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)}};yr=_r([br(1,Le.TG),br(2,ye.i6),br(3,me.XE),br(4,h.$),br(5,$.Ui)],yr);let wr=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(yr,e);this.mapEditorToService.set(e,t),(0,vr.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()}};wr=_r([br(0,Le.TG),br(1,h.$)],wr);class Cr{static get(e){return e.getContribution(Cr.ID)}constructor(e){this.editor=e,this.widget=new Sr(this.editor)}dispose(){this.widget.dispose()}}Cr.ID="editor.controller.quickInput";class Sr{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return Sr.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}Sr.ID="editor.contrib.quickInputWidget",(0,u._K)(Cr.ID,Cr,4);var xr=i(87578),kr=i(51318),Lr=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},Er=function(e,t){return function(i,n){t(i,n,e)}};let Nr=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=s.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}};Nr=Lr([Er(0,ye.i6),Er(1,Ee),Er(2,$.Ui)],Nr);var Dr,Tr,Ir=i(92601),Rr=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},Ar=function(e,t){return function(i,n){t(i,n,e)}};let Or=class{constructor(e,t){this._commandService=e,this._hiddenStates=new Pr(t)}createMenu(e,t,i){return new Fr(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,t)}resetHiddenStates(e){this._hiddenStates.reset(e)}};Or=Rr([Ar(0,$t.H),Ar(1,Ir.Uy)],Or);let Pr=Dr=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(Dr._key,0,"{}");this._data=JSON.parse(t)}catch(t){this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,Dr._key,this._disposables)((()=>{if(!this._ignoreChangeEvent)try{const t=e.get(Dr._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),r=null!==(n=null===(i=this._data[e.id])||void 0===i?void 0:i.includes(t))&&void 0!==n&&n;return o?!r:r}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(Dr._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};Pr._key="menu.hiddenCommands",Pr=Dr=Rr([Ar(0,Ir.Uy)],Pr);let Mr=Tr=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=sn.BH.getMenuItems(this._id);let t;e.sort(Tr._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(Tr._fillInKbExprKeys(e.when,this._structureContextKeys),(0,sn.vr)(e)){if(e.command.precondition&&Tr._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;Tr._fillInKbExprKeys(t,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&sn.BH.getMenuItems(e.submenu).forEach(this._collectContextKeys,this)}createActionGroups(e){const t=[];for(const i of this._menuGroups){const[n,o]=i,r=[];for(const t of o)if(this._contextKeyService.contextMatchesRules(t.when)){const i=(0,sn.vr)(t);i&&this._hiddenStates.setDefaultState(this._id,t.command.id,!!t.isHiddenByDefault);const n=Br(this._id,i?t.command:t,this._hiddenStates);if(i)r.push(new sn.U8(t.command,t.alt,e,n,this._contextKeyService,this._commandService));else{const i=new Tr(t.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._contextKeyService).createActionGroups(e),o=on.Z0.join(...i.map((e=>e[1])));o.length>0&&r.push(new sn.NZ(t,n,o))}}r.length>0&&t.push([n,r])}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,r=t.order||0;return or?1:Tr._compareTitles((0,sn.vr)(e)?e.command.title:e.title,(0,sn.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)}};Mr=Tr=Rr([Ar(3,$t.H),Ar(4,ye.i6)],Mr);let Fr=class{constructor(e,t,i,n,o){this._disposables=new a.SL,this._menuInfo=new Mr(e,t,i.emitEventsForSubmenuChanges,n,o);const r=new ii.pY((()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})}),i.eventDebounceDelay);this._disposables.add(r),this._disposables.add(sn.BH.onDidChangeMenu((t=>{t.has(e)&&r.schedule()})));const s=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=()=>{s.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})}))),s.add(t.onDidChange((e=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})})))};this._onDidChange=new pe.D0({onWillAddFirstListener:c,onDidRemoveLastListener:s.clear.bind(s),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 Br(e,t,i){const n=(0,sn.f6)(t)?t.submenu.id:t.id,o="string"===typeof t.title?t.title:t.title.value,r=(0,on.xw)({id:`hide/${e.id}/${n}`,label:(0,Oe.NC)("hide.label","Hide '{0}'",o),run(){i.updateHidden(e,n,!0)}}),s=(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:r,toggle:s,get isHidden(){return!s.checked}}}Fr=Rr([Ar(3,$t.H),Ar(4,ye.i6)],Fr);var Hr,Wr=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},Vr=function(e,t){return function(i,n){t(i,n,e)}};let jr=Hr=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:s.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,Hr.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearResources(){this.resources=[],this.resourcesStateHash=void 0}};jr.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3,jr=Hr=Wr([Vr(0,Ee),Vr(1,Je.VZ)],jr);var zr=i(2827),Ur=i(39595),$r=i(17141),qr=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},Kr=function(e,t){return function(i,n){t(i,n,e)}};const Gr="data-keybinding-context";class Zr{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 Qr extends Zr{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}Qr.INSTANCE=new Qr;class Yr extends Zr{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=$r.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 es(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,n=this._values.findSuperstr(e);void 0!==n&&(t.push(...Ur.$.map(n,(([e])=>e))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new es(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(Yr._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(Yr._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)}}Yr._keyPrefix="config.";class Jr{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 Xr{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class es{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 ts{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 is(e,t){return e.allKeysContainedIn(new Set(Object.keys(t)))}class ns extends a.JT{constructor(e){super(),this._onDidChangeContext=this._register(new pe.K3({merge:e=>new ts(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 Jr(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 rs(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 Xr(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Xr(e))}getContext(e){return this._isDisposed?Qr.INSTANCE:this.getContextValuesContainer(ss(e))}dispose(){super.dispose(),this._isDisposed=!0}}let os=class extends ns{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;const t=this._register(new Yr(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t)}getContextValuesContainer(e){return this._isDisposed?Qr.INSTANCE:this._contexts.get(e)||Qr.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 Zr(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};os=qr([Kr(0,$.Ui)],os);class rs extends ns{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(Gr)){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(Gr,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext((e=>{const t=this._parent.getContextValuesContainer(this._myContextId),i=t.value;is(e,i)||this._onDidChangeContext.fire(e)}))}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(Gr),super.dispose())}getContextValuesContainer(e){return this._isDisposed?Qr.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 ss(e){while(e){if(e.hasAttribute(Gr)){const t=e.getAttribute(Gr);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}function as(e,t,i){const n=e.get(ye.i6);n.createKey(String(t),ls(i))}function ls(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",as),$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 cs=i(42976);class ds{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}}class us{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 ds(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 hs=i(39159);const gs=!1;class ps 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 fs{constructor(e=new hs.y,t=!1,i,n=gs){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 us((e=>e)):void 0}createChild(e){return new fs(e,this._strict,this,this._enableTracing)}invokeFunction(e,...t){const i=ms.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 cs.M?(i=ms.traceCreation(this._enableTracing,e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=ms.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 s of n){const t=this._getOrCreateServiceInstance(s.id,i);t||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${s.id}.`,!1),o.push(t)}const r=n.length>0?n[0].index:t.length;if(t.length!==r){console.trace(`[createInstance] First service dependency of ${e.name} at position ${r+1} conflicts with ${t.length} static arguments`);const i=r-t.length;t=i>0?t.concat(new Array(i)):t.slice(0,r)}return Reflect.construct(e,t.concat(o))}_setServiceInstance(e,t){if(this._services.get(e)instanceof cs.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 cs.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 us((e=>e.id.toString()));let r=0;const s=[{id:e,desc:t,_trace:i}];while(s.length){const t=s.pop();if(o.lookupOrInsertNode(t),r++>1e3)throw new ps(o);for(const i of Le.I8.getServiceDependencies(t.desc.ctor)){const r=this._getServiceInstanceOrDescriptor(i.id);if(r||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)),r instanceof cs.M){const e={id:i.id,desc:r,_trace:t._trace.branch(i.id,!0)};o.insertEdge(t,e),s.push(e)}}}while(1){const e=o.roots();if(0===e.length){if(!o.isEmpty())throw new ps(o);break}for(const{data:t}of e){const e=this._getServiceInstanceOrDescriptor(t.id);if(e instanceof cs.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 cs.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 fs(void 0,this._strict,this,this._enableTracing);n._globalGraphImplicitDependency=String(e);const r=new Map,s=new ii.R5((()=>{const e=n._createInstance(t,i,o);for(const[t,i]of r){const n=e[t];if("function"===typeof n)for(const t of i)t.disposable=n.apply(e,t.listener)}return r.clear(),e}));return new Proxy(Object.create(null),{get(e,t){if(!s.isInitialized&&"string"===typeof t&&(t.startsWith("onDid")||t.startsWith("onWill"))){let e=r.get(t);e||(e=new fe.S,r.set(t,e));const i=(i,n,o)=>{if(s.isInitialized)return s.value[t](i,n,o);{const t={listener:[i,n,o],disposable:void 0},r=e.push(t),s=(0,a.OF)((()=>{var e;r(),null===(e=t.disposable)||void 0===e||e.dispose()}));return s}};return i}if(t in e)return e[t];const i=s.value;let n=i[t];return"function"!==typeof n||(n=n.bind(i),e[t]=n),n},set(e,t,i){return s.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 ms{static traceInvocation(e,t){return e?new ms(2,t.name||(new Error).stack.split("\n").slice(3,4).join("\n")):ms._None}static traceCreation(e,t){return e?new ms(1,t.name):ms._None}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new ms(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;ms._totals+=e;let t=!1;function i(e,n){const o=[],r=new Array(e+1).join("\t");for(const[s,a,l]of n._dep)if(a&&l){t=!0,o.push(`${r}CREATES -> ${s}`);const n=i(e+1,l);n&&o.push(n)}else o.push(`${r}uses -> ${s}`);return o.join("\n")}const n=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${i(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${ms._totals.toFixed(2)}ms)`];(e>2||t)&&ms.all.add(n.join("\n"))}}ms.all=new Set,ms._None=new class extends ms{constructor(){super(0,null)}stop(){}branch(){return this}},ms._totals=0;const vs=new Set([ge.lg.inMemory,ge.lg.vscodeSourceControl,ge.lg.walkThrough,ge.lg.walkThroughSnippet]);class _s{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 r=this._byOwner.get(t);if(r&&(n=r.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:Ur.$.empty():c.o.isUri(e)?null!==(o=null===(n=this._byResource.get(e))||void 0===n?void 0:n.values())&&void 0!==o?o:Ur.$.empty():Ur.$.map(Ur.$.concat(...this._byOwner.values()),(e=>e[1]))}}class bs{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(vs.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 ys{constructor(){this._onMarkerChanged=new pe.D0({delay:0,merge:ys._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new _s,this._stats=new bs(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=ys._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:r,source:s,startLineNumber:a,startColumn:l,endLineNumber:c,endColumn:d,relatedInformation:u,tags:h}=i;if(r)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:r,source:s,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=Ur.$.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:r}of t){const t=ys._toMarker(e,o,r);if(!t)continue;const s=n.get(o);s?s.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(ys._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),r=[];for(const t of e)for(const e of t)if(ys._accept(e,n)){const t=r.push(e);if(o>0&&t===o)return r}return r}{const e=[];for(const t of this._data.values())for(const i of t)if(ys._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 ws 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 Cs=i(81005);class Ss 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 xs=i(64559),ks=i(913),Ls=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},Es=function(e,t){return function(i,n){t(i,n,e)}};class Ns{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 Ds=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new a.Jz(new Ns(t))):Promise.reject(new Error("Model not found"))}};Ds=Ls([Es(0,L.q)],Ds);class Ts{show(){return Ts.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}Ts.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Is{withProgress(e,t,i){return t({report:()=>{}})}}class Rs{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}}class As{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),s.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 Os{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 Os.NO_OP}prompt(e,t,i,n){return Os.NO_OP}status(e,t){return a.JT.None}}Os.NO_OP=new Me.EO;let Ps=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)}}};Ps=Ls([Es(0,Le.TG)],Ps);let Ms=class extends ui{constructor(e,t,i,n,o,r){super(e,t,i,n,o),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const s=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 Fs(e,t))},l=e=>{for(let t=0;t{e.getOption(61)||s(e.getContainerDomNode())},d=e=>{e.getOption(61)||l(e.getContainerDomNode())};this._register(r.onCodeEditorAdd(c)),this._register(r.onCodeEditorRemove(d)),r.listCodeEditors().forEach(c);const u=e=>{s(e.getContainerDomNode())},h=e=>{l(e.getContainerDomNode())};this._register(r.onDiffEditorAdd(u)),this._register(r.onDiffEditorRemove(h)),r.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 s.Ex.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let n=0;for(const o of e){const e=o.when||void 0,r=o.keybinding;if(r){const s=bi.resolveKeybinding(r,St.OS);for(const r of s)i[n++]=new pi(r,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)}};Ms=Ls([Es(0,ye.i6),Es(1,$t.H),Es(2,Si.b),Es(3,Me.lT),Es(4,Je.VZ),Es(5,h.$)],Ms);class Fs extends a.JT{constructor(e,t){super(),this.domNode=e,this._register(t)}}function Bs(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof c.o)}class Hs{constructor(){this._onDidChangeConfiguration=new pe.Q5,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const e=new ws;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=Bs(e)?e:Bs(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 Ws=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,r=e?this.getLanguage(e,n):void 0;return"undefined"===typeof o?this.configurationService.getValue({resource:e,overrideIdentifier:r}):this.configurationService.getValue(o,{resource:e,overrideIdentifier:r})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};Ws=Ls([Es(0,$.Ui),Es(1,L.q),Es(2,w.O)],Ws);let Vs=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"}};Vs=Ls([Es(0,$.Ui)],Vs);class js{publicLog2(){}}class zs{constructor(){const e=c.o.from({scheme:zs.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===zs.SCHEME?this.workspace.folders[0]:null}}function Us(e,t,i){if(!t)return;if(!(e instanceof Hs))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)}zs.SCHEME="inmemory";let $s=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 s of i){if(!(s instanceof Bt.Gl))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(s.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof s.versionId&&e.getVersionId()!==s.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(s.textEdit.range),s.textEdit.text))}let o=0,r=0;for(const[s,a]of n)s.pushStackElement(),s.pushEditOperations([],a,(()=>[])),s.pushStackElement(),r+=1,o+=a.length;return{ariaSummary:l.WU(ki.iN.bulkEditServiceSummary,o,r),isApplied:o>0}}};$s=Ls([Es(0,L.q)],$s);class qs{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,Li.EZ)(e)}}let Ks=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)}};Ks=Ls([Es(0,Ee),Es(1,h.$)],Ks);class Gs{constructor(){this._neverEmitter=new pe.Q5,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class Zs extends tn{constructor(){super()}}class Qs extends Ss{constructor(){super(new Je.kw)}}let Ys=class extends Tn{constructor(e,t,i,n,o,r){super(e,t,i,n,o,r),this.configure({blockMouse:!1})}};Ys=Ls([Es(0,Si.b),Es(1,Me.lT),Es(2,mt.u),Es(3,vt.d),Es(4,sn.co),Es(5,ye.i6)],Ys);class Js{async playSignal(e,t){}}var Xs;(0,we.z)($.Ui,Hs,0),(0,we.z)(Ut.V,Ws,0),(0,we.z)(Ut.y,Vs,0),(0,we.z)(xi.ec,zs,0),(0,we.z)(wi.e,qs,0),(0,we.z)(Si.b,js,0),(0,we.z)(Pe.S,As,0),(0,we.z)(ks.Y,Rs,0),(0,we.z)(Me.lT,Os,0),(0,we.z)(Vn.lT,ys,0),(0,we.z)(w.O,Zs,0),(0,we.z)(kr.Z,xr.nI,0),(0,we.z)(Je.VZ,Qs,0),(0,we.z)(L.q,so,0),(0,we.z)(Zn.i,qn,0),(0,we.z)(ye.i6,os,0),(0,we.z)(Ci.R9,Is,0),(0,we.z)(Ci.ek,Ts,0),(0,we.z)(Ir.Uy,Ir.vm,0),(0,we.z)(Wn.p,p.eu,0),(0,we.z)(Bt.vu,$s,0),(0,we.z)(Ei.Y,Gs,0),(0,we.z)(zt.S,Ds,0),(0,we.z)(xt.F,Nr,0),(0,we.z)(lo.Lw,lo.XN,0),(0,we.z)($t.H,Ps,0),(0,we.z)(vt.d,Ms,0),(0,we.z)(uo.eJ,wr,0),(0,we.z)(mt.u,Ks,0),(0,we.z)(yt.v,Hn,0),(0,we.z)(zr.p,jr,0),(0,we.z)(mt.i,Ys,0),(0,we.z)(sn.co,Or,0),(0,we.z)(Cs.IV,Js,0),function(e){const t=new hs.y;for(const[a,c]of(0,we.d)())t.set(a,c);const i=new fs(t,!0);function n(e){o||s({});const n=t.get(e);if(!n)throw new Error("Missing service "+e);return n instanceof cs.M?i.invokeFunction((t=>t.get(e))):n}t.set(Le.TG,i),e.get=n;let o=!1;const r=new pe.Q5;function s(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 cs.M&&t.set(n,e[i])}const n=(0,xs.n)();for(const t of n)try{i.createInstance(t)}catch(s){(0,Re.dL)(s)}return r.fire(),i}function l(e){if(o)return e();const t=new a.SL,i=t.add(r.event((()=>{i.dispose(),t.add(e())})));return t}e.initialize=s,e.withServices=l}(Xs||(Xs={}));var ea=i(69278),ta=i(11030),ia=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},na=function(e,t){return function(i,n){t(i,n,e)}};let oa=0,ra=!1;function sa(e){if(!e){if(ra)return;ra=!0}ce.wW(e||s.Ex.document.body)}let aa=class extends de.Gm{constructor(e,t,i,n,o,r,s,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,r,a,l,c,d,u),this._standaloneKeybindingService=s instanceof Ms?s:null,sa(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,r=ye.Ao.and(n,ye.Ao.deserialize(e.keybindingContext)),s=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)),s){const e={command:{id:u,title:i},when:n,group:s,order:l};d.add(sn.BH.appendMenuItem(sn.eH.EditorContext,e))}if(Array.isArray(o))for(const a of o)d.add(this._standaloneKeybindingService.addDynamicKeybinding(u,a,c,r));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,r,s,a,l,c,d,u,h,g,p){const f={...t};Us(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,r,s,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){Us(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,kr.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,r,s,a,l,c,d,u){const h={...t};Us(a,h,!0);const g=r.registerEditorContainer(e);"string"===typeof h.theme&&r.setTheme(h.theme),"undefined"!==typeof h.autoDetectHighContrast&&r.setAutoDetectHighContrast(Boolean(h.autoDetectHighContrast)),super(e,h,{},n,i,o,u,c),this._configurationService=a,this._standaloneThemeService=r,this._register(g)}dispose(){super.dispose()}updateOptions(e){Us(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 r=i;return-1!==n&&(r=i.substring(0,n)),ua(e,i,t.createByFilepathOrFirstLine(o||null,r),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,kr.Z),na(6,Me.lT),na(7,$.Ui),na(8,mt.i),na(9,Ci.ek),na(10,zr.p),na(11,Cs.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,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},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 tr.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,sn.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,rn.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,r,s,a;null===(o=this._resourceLabel)||void 0===o||o.setUri(null!==(r=e.viewModel.modifiedUri)&&void 0!==r?r: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===(s=this._resourceLabel2)||void 0===s||s.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,r=Math.max(0,Math.min(n.start-e.start,o));this._elements.header.style.transform=`translateY(${r}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",r>0||i>0),this._elements.header.classList.toggle("collapsed",r===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,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},Da=function(e,t){return function(i,n){t(i,n,e)}};let Ta=class extends a.JT{constructor(e,t,i,n,o,r){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=n,this._parentContextKeyService=o,this._parentInstantiationService=r,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 hs.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 s=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)));s.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 r=this._viewItems.read(e),s=(0,pa.dI)(r,(t=>t.maxScroll.read(e).maxScroll));if(s){const t=s.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 r=this._sizeObserver.height.read(e),s=va.q.ofStartAndLength(t,r),a=this._sizeObserver.width.read(e);for(const l of this._viewItems.read(e)){const c=l.contentHeight.read(e),d=Math.min(c,r),u=va.q.ofStartAndLength(n,d),h=va.q.ofStartAndLength(o,c);if(h.isBefore(s))i-=c-d,l.hide();else if(h.isAfter(s))l.hide();else{const e=Math.max(0,Math.min(s.start-h.start,c-d));i-=e;const n=va.q.ofStartAndLength(t+i,r);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 r=this._templateRef.get();r&&o&&r.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,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},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=Xs.initialize(i||{});return n.createInstance(la,e,t)}function Ma(e){const t=Xs.get(h.$);return t.onCodeEditorAdd((t=>{e(t)}))}function Fa(e){const t=Xs.get(h.$);return t.onDiffEditorAdd((t=>{e(t)}))}function Ba(){const e=Xs.get(h.$);return e.listCodeEditors()}function Ha(){const e=Xs.get(h.$);return e.listDiffEditors()}function Wa(e,t,i){const n=Xs.initialize(i||{});return n.createInstance(ca,e,t)}function Va(e,t){const i=Xs.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(sn.BH.appendMenuItem(sn.eH.EditorContext,i))}if(Array.isArray(e.keybindings)){const i=Xs.get(vt.d);if(i instanceof Ms){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=Xs.get(vt.d);return t instanceof Ms?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=Xs.get(w.O),o=n.getLanguageIdByMimeType(t)||t;return da(Xs.get(L.q),n,e,o,i)}function Ka(e,t){const i=Xs.get(w.O),n=i.getLanguageIdByMimeType(t)||t||S.bd;e.setLanguage(i.createById(n))}function Ga(e,t,i){if(e){const n=Xs.get(Vn.lT);n.changeOne(t,e.uri,i)}}function Za(e){const t=Xs.get(Vn.lT);t.changeAll(e,[])}function Qa(e){const t=Xs.get(Vn.lT);return t.read(e)}function Ya(e){const t=Xs.get(Vn.lT);return t.onMarkerChanged(e)}function Ja(e){const t=Xs.get(L.q);return t.getModel(e)}function Xa(){const e=Xs.get(L.q);return e.getModels()}function el(e){const t=Xs.get(L.q);return t.onModelAdded(e)}function tl(e){const t=Xs.get(L.q);return t.onModelRemoved(e)}function il(e){const t=Xs.get(L.q);return t.onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))}function nl(e){return f(Xs.get(L.q),Xs.get(C.c_),e)}function ol(e,t){const i=Xs.get(w.O),n=Xs.get(kr.Z);return re.colorizeElement(n,i,e,t).then((()=>{n.registerEditorContainer(e)}))}function rl(e,t,i){const n=Xs.get(w.O),o=Xs.get(kr.Z);return o.registerEditorContainer(s.Ex.document.body),re.colorize(n,e,t,i)}function sl(e,t,i=4){const n=Xs.get(kr.Z);return n.registerEditorContainer(s.Ex.document.body),re.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 r=i.getInitialState();for(let s=0,a=n.length;s{var o;if(!i)return null;const r=null===(o=t.options)||void 0===o?void 0:o.selection;let s;return r&&"number"===typeof r.endLineNumber&&"number"===typeof r.endColumn?s=r:r&&(s={lineNumber:r.startLineNumber,column:r.startColumn}),await e.openCodeEditor(i,t.resource,s)?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:rl,colorizeModelLine:sl,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 r="";if("string"===typeof e[o])r=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);r=e[o].source}return M(r)?"":"(?:"+r+")"})),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,r=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,r,s){for(const a of s){let s=a.include;if(s){if("string"!==typeof s)throw W(i,"an 'include' attribute must be a string at: "+e);if("@"===s[0]&&(s=s.substr(1)),!t.tokenizer[s])throw W(i,"include target '"+s+"' is not defined at: "+e);o(e+"."+s,r,t.tokenizer[s])}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)}r.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 s in t.tokenizer)if(t.tokenizer.hasOwnProperty(s)){i.start||(i.start=s);const e=t.tokenizer[s];i.tokenizer[s]=new Array,o("tokenizer."+s,i.tokenizer[s],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 r=[];for(const s of t.brackets){let e=s;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");r.push({token:e.token+i.tokenPostfix,open:F(i,e.open),close:F(i,e.close)})}return i.brackets=r,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=Xs.get(w.O);return t.languageIdCodec.encodeLanguageId(e)}function Il(e,t){return Xs.withServices((()=>{const i=Xs.get(w.O),n=i.onDidRequestRichLanguageFeatures((i=>{i===e&&(n.dispose(),t())}));return n}))}function Rl(e,t){return Xs.withServices((()=>{const i=Xs.get(w.O),n=i.onDidRequestBasicLanguageFeatures((i=>{i===e&&(n.dispose(),t())}));return n}))}function Al(e,t){const i=Xs.get(w.O);if(!i.isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);const n=Xs.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,r=e.length;o0&&o[r-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(Xs.get(w.O),Xs.get(kr.Z),e,El(e,i),Xs.get($.Ui)):null}));return y.RW.registerFactory(e,i)}function jl(e,t){const i=Xs.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(Xs.get(w.O),Xs.get(kr.Z),e,El(e,t),Xs.get($.Ui));return Bl(t)?Vl(e,{create:()=>t}):y.RW.register(e,i(t))}function Ul(e,t){const i=Xs.get(ct.p);return i.referenceProvider.register(e,t)}function $l(e,t){const i=Xs.get(ct.p);return i.renameProvider.register(e,t)}function ql(e,t){const i=Xs.get(ct.p);return i.newSymbolNamesProvider.register(e,t)}function Kl(e,t){const i=Xs.get(ct.p);return i.signatureHelpProvider.register(e,t)}function Gl(e,t){const i=Xs.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=Xs.get(ct.p);return i.documentSymbolProvider.register(e,t)}function Ql(e,t){const i=Xs.get(ct.p);return i.documentHighlightProvider.register(e,t)}function Yl(e,t){const i=Xs.get(ct.p);return i.linkedEditingRangeProvider.register(e,t)}function Jl(e,t){const i=Xs.get(ct.p);return i.definitionProvider.register(e,t)}function Xl(e,t){const i=Xs.get(ct.p);return i.implementationProvider.register(e,t)}function ec(e,t){const i=Xs.get(ct.p);return i.typeDefinitionProvider.register(e,t)}function tc(e,t){const i=Xs.get(ct.p);return i.codeLensProvider.register(e,t)}function ic(e,t,i){const n=Xs.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 r=Xs.get(Vn.lT),s=r.read({resource:e.uri}).filter((e=>jt.e.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:s,only:n.only,trigger:n.trigger},o)},resolveCodeAction:t.resolveCodeAction})}function nc(e,t){const i=Xs.get(ct.p);return i.documentFormattingEditProvider.register(e,t)}function oc(e,t){const i=Xs.get(ct.p);return i.documentRangeFormattingEditProvider.register(e,t)}function rc(e,t){const i=Xs.get(ct.p);return i.onTypeFormattingEditProvider.register(e,t)}function sc(e,t){const i=Xs.get(ct.p);return i.linkProvider.register(e,t)}function ac(e,t){const i=Xs.get(ct.p);return i.completionProvider.register(e,t)}function lc(e,t){const i=Xs.get(ct.p);return i.colorProvider.register(e,t)}function cc(e,t){const i=Xs.get(ct.p);return i.foldingRangeProvider.register(e,t)}function dc(e,t){const i=Xs.get(ct.p);return i.declarationProvider.register(e,t)}function uc(e,t){const i=Xs.get(ct.p);return i.selectionRangeProvider.register(e,t)}function hc(e,t){const i=Xs.get(ct.p);return i.documentSemanticTokensProvider.register(e,t)}function gc(e,t){const i=Xs.get(ct.p);return i.documentRangeSemanticTokensProvider.register(e,t)}function pc(e,t){const i=Xs.get(ct.p);return i.inlineCompletionsProvider.register(e,t)}function fc(e,t){const i=Xs.get(ct.p);return i.inlineEditProvider.register(e,t)}function mc(e,t){const i=Xs.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:rc,registerLinkProvider:sc,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,r.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 r=i.p,s=(r?t(r)+"/":"")+e[o];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(s)){var a=String(window.location),l=a.substr(0,a.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(s.substring(0,l.length)!==l){/^(\/\/)/.test(s)&&(s=window.location.protocol+s);var c="/*"+o+'*/importScripts("'+s+'");',d=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(d)}}return s}}}({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); /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) @@ -580,16 +580,16 @@ function n(e,t){const i=new Set(e.split(","));return t?e=>i.has(e.toLowerCase()) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ -var s=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of a(t))l.call(e,o)||o===i||s(e,o,{get:()=>t[o],enumerable:!(n=r(t,o))||n.enumerable});return e},d=(e,t,i)=>(c(e,t,"default"),i&&c(i,t,"default")),u={};d(u,n);var h=class{constructor(e,t,i){this._onDidChange=new u.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},p={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},f=new h("css",g,p),m=new h("scss",g,p),v=new h("less",g,p);function _(){return i.e(736).then(i.bind(i,13098))}u.languages.css={cssDefaults:f,lessDefaults:v,scssDefaults:m},u.languages.onLanguage("less",(()=>{_().then((e=>e.setupMode(v)))})),u.languages.onLanguage("scss",(()=>{_().then((e=>e.setupMode(m)))})),u.languages.onLanguage("css",(()=>{_().then((e=>e.setupMode(f)))})); +var r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of a(t))l.call(e,o)||o===i||r(e,o,{get:()=>t[o],enumerable:!(n=s(t,o))||n.enumerable});return e},d=(e,t,i)=>(c(e,t,"default"),i&&c(i,t,"default")),u={};d(u,n);var h=class{constructor(e,t,i){this._onDidChange=new u.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},p={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},f=new h("css",g,p),m=new h("scss",g,p),v=new h("less",g,p);function _(){return i.e(736).then(i.bind(i,13098))}u.languages.css={cssDefaults:f,lessDefaults:v,scssDefaults:m},u.languages.onLanguage("less",(()=>{_().then((e=>e.setupMode(v)))})),u.languages.onLanguage("scss",(()=>{_().then((e=>e.setupMode(m)))})),u.languages.onLanguage("css",(()=>{_().then((e=>e.setupMode(f)))})); /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ -var b=Object.defineProperty,y=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,C=Object.prototype.hasOwnProperty,S=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of w(t))C.call(e,o)||o===i||b(e,o,{get:()=>t[o],enumerable:!(n=y(t,o))||n.enumerable});return e},x=(e,t,i)=>(S(e,t,"default"),i&&S(i,t,"default")),k={};x(k,n);var L=class{constructor(e,t,i){this._onDidChange=new k.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},E={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},N={format:E,suggest:{},data:{useDefaultDataProvider:!0}};function D(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===T,documentFormattingEdits:e===T,documentRangeFormattingEdits:e===T}}var T="html",I="handlebars",R="razor",A=W(T,N,D(T)),O=A.defaults,P=W(I,N,D(I)),M=P.defaults,F=W(R,N,D(R)),B=F.defaults;function H(){return i.e(736).then(i.bind(i,30747))}function W(e,t=N,i=D(e)){const n=new L(e,t,i);let o;const s=k.languages.onLanguage(e,(async()=>{o=(await H()).setupMode(n)}));return{defaults:n,dispose(){s.dispose(),o?.dispose(),o=void 0}}}k.languages.html={htmlDefaults:O,razorDefaults:B,handlebarDefaults:M,htmlLanguageService:A,handlebarLanguageService:P,razorLanguageService:F,registerHTMLLanguageService:W};i(68434),i(5483),i(97060),i(85080);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"})},90882:(e,t,i)=>{"use strict";i.d(t,{$W:()=>f,Dt:()=>g,G6:()=>u,MG:()=>h,Pf:()=>c,i7:()=>d,ie:()=>r,uB:()=>s,vU:()=>l});var n=i(36606);class o{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){var t;return null!==(t=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))&&void 0!==t?t:1}getWindowId(e){return e.vscodeWindowId}}function s(e,t,i){"string"===typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function r(e){return o.INSTANCE.getZoomFactor(e)}o.INSTANCE=new o;const a=navigator.userAgent,l=a.indexOf("Firefox")>=0,c=a.indexOf("AppleWebKit")>=0,d=a.indexOf("Chrome")>=0,u=!d&&a.indexOf("Safari")>=0,h=!d&&!u&&c,g=(a.indexOf("Electron/"),a.indexOf("Android")>=0);let p=!1;if("function"===typeof n.Ex.matchMedia){const e=n.Ex.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=n.Ex.matchMedia("(display-mode: fullscreen)");p=e.matches,s(n.Ex,e,(({matches:e})=>{p&&t.matches||(p=e)}))}function f(){return p}},53915:(e,t,i)=>{"use strict";i.d(t,{D:()=>r});var n=i(90882),o=i(36606),s=i(47606);const r={clipboard:{writeText:s.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:s.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>s.tY||n.$W()?0:navigator.keyboard||n.G6?1:2)(),touch:"ontouchstart"in o.Ex||navigator.maxTouchPoints>0,pointerEvents:o.Ex.PointerEvent&&("ontouchstart"in o.Ex||navigator.maxTouchPoints>0)}},1483:(e,t,i)=>{"use strict";i.d(t,{g:()=>o});var n=i(96358);const o={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:n.v.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},2548:(e,t,i)=>{"use strict";i.d(t,{$:()=>Be,$Z:()=>We,Ay:()=>oe,Ce:()=>Ae,Cp:()=>Ve,D6:()=>j,Dx:()=>V,FK:()=>Q,GQ:()=>A,H9:()=>re,I8:()=>G,If:()=>Y,Jc:()=>k,Jj:()=>v,N5:()=>Ce,OO:()=>ne,PO:()=>E,R3:()=>Re,Ro:()=>U,Uh:()=>je,V3:()=>ze,WN:()=>ce,XT:()=>Ke,Xo:()=>x,ZY:()=>w,_0:()=>Ne,_F:()=>Ge,_h:()=>qe,_q:()=>Qe,aU:()=>ue,b5:()=>ae,cl:()=>ke,dS:()=>ge,dp:()=>q,e4:()=>Ie,ed:()=>C,eg:()=>Ye,ey:()=>L,fk:()=>be,go:()=>Te,h:()=>Xe,i:()=>K,iJ:()=>He,jL:()=>B,jg:()=>X,jt:()=>Ue,lI:()=>F,mc:()=>Oe,mu:()=>R,ne:()=>H,nm:()=>D,sQ:()=>Ze,se:()=>P,tw:()=>xe,uN:()=>ye,uP:()=>le,uU:()=>te,vL:()=>Ee,vY:()=>se,vd:()=>Se,vx:()=>M,w:()=>Z,wY:()=>$e,wn:()=>J,xQ:()=>$,zB:()=>Le});var n=i(90882),o=i(53915),s=i(45429),r=i(75467),a=i(85398),l=i(98642),c=i(11271),d=i(29739),u=i(70959),h=i(50200),g=i(47606),p=i(63381),f=i(36606);const{registerWindow:m,getWindow:v,getDocument:_,getWindows:b,getWindowsCount:y,getWindowId:w,getWindowById:C,hasWindow:S,onDidRegisterWindow:x,onWillUnregisterWindow:k,onDidUnregisterWindow:L}=function(){const e=new Map;(0,f.HA)(f.Ex,1);const t={window:f.Ex,disposables:new u.SL};e.set(f.Ex.vscodeWindowId,t);const i=new c.Q5,n=new c.Q5,o=new c.Q5;function s(i,n){const o="number"===typeof i?e.get(i):void 0;return null!==o&&void 0!==o?o:n?t:void 0}return{onDidRegisterWindow:i.event,onWillUnregisterWindow:o.event,onDidUnregisterWindow:n.event,registerWindow(t){if(e.has(t.vscodeWindowId))return u.JT.None;const s=new u.SL,r={window:t,disposables:s.add(new u.SL)};return e.set(t.vscodeWindowId,r),s.add((0,u.OF)((()=>{e.delete(t.vscodeWindowId),n.fire(t)}))),s.add(D(t,xe.BEFORE_UNLOAD,(()=>{o.fire(t)}))),i.fire(r),s},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(e){return e.vscodeWindowId},hasWindow(t){return e.has(t)},getWindowById:s,getWindow(e){var t;const i=e;if(null===(t=null===i||void 0===i?void 0:i.ownerDocument)||void 0===t?void 0:t.defaultView)return i.ownerDocument.defaultView.window;const n=e;return(null===n||void 0===n?void 0:n.view)?n.view.window:f.Ex},getDocument(e){const t=e;return v(t).document}}}();function E(e){while(e.firstChild)e.firstChild.remove()}class N{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function D(e,t,i,n){return new N(e,t,i,n)}function T(e,t){return function(i){return t(new r.n(e,i))}}function I(e){return function(t){return e(new s.y(t))}}const R=function(e,t,i,n){let o=i;return"click"===t||"mousedown"===t?o=T(v(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=I(i)),D(e,t,o,n)},A=function(e,t,i){const n=T(v(e),t);return O(e,n,i)};function O(e,t,i){return D(e,g.gn&&o.D.pointerEvents?xe.POINTER_DOWN:xe.MOUSE_DOWN,t,i)}function P(e,t,i){return(0,a.y5)(e,t,i)}class M extends a.hF{constructor(e,t){super(e,t)}}let F,B;class H extends a.zh{constructor(e){super(),this.defaultTarget=e&&v(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,null!==i&&void 0!==i?i:this.defaultTarget)}}class W{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,l.dL)(e)}}static sort(e,t){return t.priority-e.priority}}function V(e){return v(e).getComputedStyle(e,null)}function j(e,t){const i=v(e),n=i.document;if(e!==n.body)return new U(e.clientWidth,e.clientHeight);if(g.gn&&(null===i||void 0===i?void 0:i.visualViewport))return new U(i.visualViewport.width,i.visualViewport.height);if((null===i||void 0===i?void 0:i.innerWidth)&&i.innerHeight)return new U(i.innerWidth,i.innerHeight);if(n.body&&n.body.clientWidth&&n.body.clientHeight)return new U(n.body.clientWidth,n.body.clientHeight);if(n.documentElement&&n.documentElement.clientWidth&&n.documentElement.clientHeight)return new U(n.documentElement.clientWidth,n.documentElement.clientHeight);if(t)return j(t);throw new Error("Unable to figure out browser width and height")}(function(){const e=new Map,t=new Map,i=new Map,n=new Map,o=o=>{var s;i.set(o,!1);const r=null!==(s=e.get(o))&&void 0!==s?s:[];t.set(o,r),e.set(o,[]),n.set(o,!0);while(r.length>0){r.sort(W.sort);const e=r.shift();e.execute()}n.set(o,!1)};B=(t,n,s=0)=>{const r=w(t),a=new W(n,s);let l=e.get(r);return l||(l=[],e.set(r,l)),l.push(a),i.get(r)||(i.set(r,!0),t.requestAnimationFrame((()=>o(r)))),a},F=(e,i,o)=>{const s=w(e);if(n.get(s)){const e=new W(i,o);let n=t.get(s);return n||(n=[],t.set(s,n)),n.push(e),e}return B(e,i,o)}})();class z{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const n=V(e),o=n?n.getPropertyValue(t):"0";return z.convertToPixels(e,o)}static getBorderLeftWidth(e){return z.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return z.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return z.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return z.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return z.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return z.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return z.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return z.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return z.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return z.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return z.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return z.getDimension(e,"margin-bottom","marginBottom")}}class U{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new U(e,t):this}static is(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}static lift(e){return e instanceof U?e:new U(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function $(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;while(null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement){i-=e.scrollTop;const o=ie(e)?null:V(e);o&&(n-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=z.getBorderLeftWidth(e),i+=z.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function q(e,t,i){"number"===typeof t&&(e.style.width=`${t}px`),"number"===typeof i&&(e.style.height=`${i}px`)}function K(e){const t=e.getBoundingClientRect(),i=v(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function G(e){let t=e,i=1;do{const e=V(t).zoom;null!==e&&void 0!==e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function Z(e){const t=z.getMarginLeft(e)+z.getMarginRight(e);return e.offsetWidth+t}function Q(e){const t=z.getBorderLeftWidth(e)+z.getBorderRightWidth(e),i=z.getPaddingLeft(e)+z.getPaddingRight(e);return e.offsetWidth-t-i}function Y(e){const t=z.getBorderTopWidth(e)+z.getBorderBottomWidth(e),i=z.getPaddingTop(e)+z.getPaddingBottom(e);return e.offsetHeight-t-i}function J(e){const t=z.getMarginTop(e)+z.getMarginBottom(e);return e.offsetHeight+t}function X(e,t){return Boolean(null===t||void 0===t?void 0:t.contains(e))}function ee(e,t,i){while(e&&e.nodeType===e.ELEMENT_NODE){if(e.classList.contains(t))return e;if(i)if("string"===typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}function te(e,t,i){return!!ee(e,t,i)}function ie(e){return e&&!!e.host&&!!e.mode}function ne(e){return!!oe(e)}function oe(e){var t;while(e.parentNode){if(e===(null===(t=e.ownerDocument)||void 0===t?void 0:t.body))return null;e=e.parentNode}return ie(e)?e:null}function se(){let e=le().activeElement;while(null===e||void 0===e?void 0:e.shadowRoot)e=e.shadowRoot.activeElement;return e}function re(e){return se()===e}function ae(e){return X(se(),e)}function le(){var e;if(y()<=1)return f.Ex.document;const t=Array.from(b()).map((({window:e})=>e.document));return null!==(e=t.find((e=>e.hasFocus())))&&void 0!==e?e:f.Ex.document}function ce(){var e,t;const i=le();return null!==(t=null===(e=i.defaultView)||void 0===e?void 0:e.window)&&void 0!==t?t:f.Ex}U.None=new U(0,0);const de=new Map;function ue(){return new he}class he{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=ge(f.Ex.document.head,(t=>t.innerText=e)))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function ge(e=f.Ex.document.head,t,i){const n=document.createElement("style");if(n.type="text/css",n.media="screen",null===t||void 0===t||t(n),e.appendChild(n),i&&i.add((0,u.OF)((()=>e.removeChild(n)))),e===f.Ex.document.head){const e=new Set;de.set(n,e);for(const{window:t,disposables:o}of b()){if(t===f.Ex)continue;const s=o.add(pe(n,e,t));null===i||void 0===i||i.add(s)}}return n}function pe(e,t,i){var n,o;const s=new u.SL,r=e.cloneNode(!0);i.document.head.appendChild(r),s.add((0,u.OF)((()=>i.document.head.removeChild(r))));for(const a of _e(e))null===(n=r.sheet)||void 0===n||n.insertRule(a.cssText,null===(o=r.sheet)||void 0===o?void 0:o.cssRules.length);return s.add(fe.observe(e,s,{childList:!0})((()=>{r.textContent=e.textContent}))),t.add(r),s.add((0,u.OF)((()=>t.delete(r)))),s}const fe=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let n=this.mutationObservers.get(e);n||(n=new Map,this.mutationObservers.set(e,n));const o=(0,p.vp)(i);let s=n.get(o);if(s)s.users+=1;else{const r=new c.Q5,a=new MutationObserver((e=>r.fire(e)));a.observe(e,i);const l=s={users:1,observer:a,onDidMutate:r.event};t.add((0,u.OF)((()=>{l.users-=1,0===l.users&&(r.dispose(),a.disconnect(),null===n||void 0===n||n.delete(o),0===(null===n||void 0===n?void 0:n.size)&&this.mutationObservers.delete(e))}))),n.set(o,s)}return s.onDidMutate}};let me=null;function ve(){return me||(me=ge()),me}function _e(e){var t,i;return(null===(t=null===e||void 0===e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(i=null===e||void 0===e?void 0:e.sheet)||void 0===i?void 0:i.cssRules)?e.sheet.cssRules:[]}function be(e,t,i=ve()){var n,o;if(i&&t){null===(n=i.sheet)||void 0===n||n.insertRule(`${e} {${t}}`,0);for(const n of null!==(o=de.get(i))&&void 0!==o?o:[])be(e,t,n)}}function ye(e,t=ve()){var i,n;if(!t)return;const o=_e(t),s=[];for(let r=0;r=0;r--)null===(i=t.sheet)||void 0===i||i.deleteRule(s[r]);for(const r of null!==(n=de.get(t))&&void 0!==n?n:[])ye(e,r)}function we(e){return"string"===typeof e.selectorText}function Ce(e){return e instanceof MouseEvent||e instanceof v(e).MouseEvent}function Se(e){return e instanceof KeyboardEvent||e instanceof v(e).KeyboardEvent}const xe={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n.Pf?"webkitAnimationStart":"animationstart",ANIMATION_END:n.Pf?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:n.Pf?"webkitAnimationIteration":"animationiteration"};function ke(e){const t=e;return!(!t||"function"!==typeof t.preventDefault||"function"!==typeof t.stopPropagation)}const Le={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function Ee(e){const t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function Ne(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class De extends u.JT{static hasFocusWithin(e){if(e instanceof HTMLElement){const t=oe(e),i=t?t.activeElement:e.ownerDocument.activeElement;return X(i,e)}{const t=e;return X(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new c.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new c.Q5),this.onDidBlur=this._onDidBlur.event;let t=De.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,(e instanceof HTMLElement?v(e):e).setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{const i=De.hasFocusWithin(e);i!==t&&(t?o():n())},this._register(D(e,xe.FOCUS,n,!0)),this._register(D(e,xe.BLUR,o,!0)),e instanceof HTMLElement&&(this._register(D(e,xe.FOCUS_IN,(()=>this._refreshStateHandler()))),this._register(D(e,xe.FOCUS_OUT,(()=>this._refreshStateHandler()))))}}function Te(e){return new De(e)}function Ie(e,t){return e.after(t),t}function Re(e,...t){if(e.append(...t),1===t.length&&"string"!==typeof t[0])return t[0]}function Ae(e,t){return e.insertBefore(t,e.firstChild),t}function Oe(e,...t){e.innerText="",Re(e,...t)}const Pe=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Me;function Fe(e,t,i,...n){const o=Pe.exec(t);if(!o)throw new Error("Bad use of emmet");const s=o[1]||"div";let r;return r=e!==Me.HTML?document.createElementNS(e,s):document.createElement(s),o[3]&&(r.id=o[3]),o[4]&&(r.className=o[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach((([e,t])=>{"undefined"!==typeof t&&(/^on\w+$/.test(e)?r[e]=t:"selected"===e?t&&r.setAttribute(e,"true"):r.setAttribute(e,t))})),r.append(...n),r}function Be(e,t,...i){return Fe(Me.HTML,e,t,...i)}function He(e,...t){e?We(...t):Ve(...t)}function We(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function Ve(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function je(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function ze(e){f.Ex.open(e,"_blank","noopener")}function Ue(e,t){const i=()=>{t(),n=B(e,i)};let n=B(e,i);return(0,u.OF)((()=>n.dispose()))}function $e(e){return e?`url('${h.Gi.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function qe(e){return`'${e.replace(/'/g,"%27")}'`}function Ke(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Ke(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function Ge(e,t=!1){const i=document.createElement("a");return d.v5("afterSanitizeAttributes",(n=>{for(const o of["href","src"])if(n.hasAttribute(o)){const s=n.getAttribute(o);if("href"===o&&s.startsWith("#"))continue;if(i.href=s,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===o&&i.href.startsWith("data:"))continue;n.removeAttribute(o)}}})),(0,u.OF)((()=>{d.ok("afterSanitizeAttributes")}))}(function(e){e["HTML"]="http://www.w3.org/1999/xhtml",e["SVG"]="http://www.w3.org/2000/svg"})(Me||(Me={})),Be.SVG=function(e,t,...i){return Fe(Me.SVG,e,t,...i)},h.WX.setPreferredWebSchema(/^https:/.test(f.Ex.location.href)?"https":"http");const Ze=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class Qe extends c.Q5{constructor(){super(),this._subscriptions=new u.SL,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(c.ju.runAndSubscribe(x,(({window:e,disposables:t})=>this.registerListeners(e,t)),{window:f.Ex,disposables:this._subscriptions}))}registerListeners(e,t){t.add(D(e,"keydown",(e=>{if(e.defaultPrevented)return;const t=new s.y(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}),!0)),t.add(D(e,"keyup",(e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))}),!0)),t.add(D(e.document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(D(e.document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(D(e.document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),t.add(D(e,"blur",(()=>{this.resetKeyStatus()})))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Qe.instance||(Qe.instance=new Qe),Qe.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Ye extends u.JT{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(D(this.element,xe.DRAG_START,(e=>{var t,i;null===(i=(t=this.callbacks).onDragStart)||void 0===i||i.call(t,e)}))),this.callbacks.onDrag&&this._register(D(this.element,xe.DRAG,(e=>{var t,i;null===(i=(t=this.callbacks).onDrag)||void 0===i||i.call(t,e)}))),this._register(D(this.element,xe.DRAG_ENTER,(e=>{var t,i;this.counter++,this.dragStartTime=e.timeStamp,null===(i=(t=this.callbacks).onDragEnter)||void 0===i||i.call(t,e)}))),this._register(D(this.element,xe.DRAG_OVER,(e=>{var t,i;e.preventDefault(),null===(i=(t=this.callbacks).onDragOver)||void 0===i||i.call(t,e,e.timeStamp-this.dragStartTime)}))),this._register(D(this.element,xe.DRAG_LEAVE,(e=>{var t,i;this.counter--,0===this.counter&&(this.dragStartTime=0,null===(i=(t=this.callbacks).onDragLeave)||void 0===i||i.call(t,e))}))),this._register(D(this.element,xe.DRAG_END,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDragEnd)||void 0===i||i.call(t,e)}))),this._register(D(this.element,xe.DROP,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDrop)||void 0===i||i.call(t,e)})))}}const Je=/(?[\w\-]+)?(?:#(?[\w\-]+))?(?(?:\.(?:[\w\-]+))*)(?:@(?(?:[\w\_])+))?/;function Xe(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);const o=Je.exec(e);if(!o||!o.groups)throw new Error("Bad use of h");const s=o.groups["tag"]||"div",r=document.createElement(s);o.groups["id"]&&(r.id=o.groups["id"]);const a=[];if(o.groups["class"])for(const c of o.groups["class"].split("."))""!==c&&a.push(c);if(void 0!==i.className)for(const c of i.className.split("."))""!==c&&a.push(c);a.length>0&&(r.className=a.join(" "));const l={};if(o.groups["name"]&&(l[o.groups["name"]]=r),n)for(const c of n)c instanceof HTMLElement?r.appendChild(c):"string"===typeof c?r.append(c):"root"in c&&(Object.assign(l,c),r.appendChild(c.root));for(const[c,d]of Object.entries(i))if("className"!==c)if("style"===c)for(const[e,t]of Object.entries(d))r.style.setProperty(et(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===c?r.tabIndex=d:r.setAttribute(et(c),d.toString());return l["root"]=r,l}function et(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},29739:(e,t,i)=>{"use strict";i.d(t,{Nw:()=>ee,ok:()=>ie,v5:()=>te}); +var b=Object.defineProperty,y=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,C=Object.prototype.hasOwnProperty,S=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of w(t))C.call(e,o)||o===i||b(e,o,{get:()=>t[o],enumerable:!(n=y(t,o))||n.enumerable});return e},x=(e,t,i)=>(S(e,t,"default"),i&&S(i,t,"default")),k={};x(k,n);var L=class{constructor(e,t,i){this._onDidChange=new k.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},E={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},N={format:E,suggest:{},data:{useDefaultDataProvider:!0}};function D(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===T,documentFormattingEdits:e===T,documentRangeFormattingEdits:e===T}}var T="html",I="handlebars",R="razor",A=W(T,N,D(T)),O=A.defaults,P=W(I,N,D(I)),M=P.defaults,F=W(R,N,D(R)),B=F.defaults;function H(){return i.e(736).then(i.bind(i,30747))}function W(e,t=N,i=D(e)){const n=new L(e,t,i);let o;const r=k.languages.onLanguage(e,(async()=>{o=(await H()).setupMode(n)}));return{defaults:n,dispose(){r.dispose(),o?.dispose(),o=void 0}}}k.languages.html={htmlDefaults:O,razorDefaults:B,handlebarDefaults:M,htmlLanguageService:A,handlebarLanguageService:P,razorLanguageService:F,registerHTMLLanguageService:W};i(68434),i(5483),i(97060),i(85080);self["MonacoEnvironment"]=function(e){function t(e){return e.replace(/\/$/,"")}return{globalAPI:!1,getWorkerUrl:function(n,o){var r=i.p,s=(r?t(r)+"/":"")+e[o];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(s)){var a=String(window.location),l=a.substr(0,a.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(s.substring(0,l.length)!==l){/^(\/\/)/.test(s)&&(s=window.location.protocol+s);var c="/*"+o+'*/importScripts("'+s+'");',d=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(d)}}return s}}}({editorWorkerService:"editor.worker.js",json:"json.worker.js"})},90882:(e,t,i)=>{"use strict";i.d(t,{$W:()=>f,Dt:()=>g,G6:()=>u,MG:()=>h,Pf:()=>c,i7:()=>d,ie:()=>s,uB:()=>r,vU:()=>l});var n=i(36606);class o{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){var t;return null!==(t=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))&&void 0!==t?t:1}getWindowId(e){return e.vscodeWindowId}}function r(e,t,i){"string"===typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function s(e){return o.INSTANCE.getZoomFactor(e)}o.INSTANCE=new o;const a=navigator.userAgent,l=a.indexOf("Firefox")>=0,c=a.indexOf("AppleWebKit")>=0,d=a.indexOf("Chrome")>=0,u=!d&&a.indexOf("Safari")>=0,h=!d&&!u&&c,g=(a.indexOf("Electron/"),a.indexOf("Android")>=0);let p=!1;if("function"===typeof n.Ex.matchMedia){const e=n.Ex.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=n.Ex.matchMedia("(display-mode: fullscreen)");p=e.matches,r(n.Ex,e,(({matches:e})=>{p&&t.matches||(p=e)}))}function f(){return p}},53915:(e,t,i)=>{"use strict";i.d(t,{D:()=>s});var n=i(90882),o=i(36606),r=i(47606);const s={clipboard:{writeText:r.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:r.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>r.tY||n.$W()?0:navigator.keyboard||n.G6?1:2)(),touch:"ontouchstart"in o.Ex||navigator.maxTouchPoints>0,pointerEvents:o.Ex.PointerEvent&&("ontouchstart"in o.Ex||navigator.maxTouchPoints>0)}},1483:(e,t,i)=>{"use strict";i.d(t,{g:()=>o});var n=i(96358);const o={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:n.v.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},2548:(e,t,i)=>{"use strict";i.d(t,{$:()=>Be,$Z:()=>We,Ay:()=>oe,Ce:()=>Ae,Cp:()=>Ve,D6:()=>j,Dx:()=>V,FK:()=>Q,GQ:()=>A,H9:()=>se,I8:()=>G,If:()=>Y,Jc:()=>k,Jj:()=>v,N5:()=>Ce,OO:()=>ne,PO:()=>E,R3:()=>Re,Ro:()=>U,Uh:()=>je,V3:()=>ze,WN:()=>ce,XT:()=>Ke,Xo:()=>x,ZY:()=>w,_0:()=>Ne,_F:()=>Ge,_h:()=>qe,_q:()=>Qe,aU:()=>ue,b5:()=>ae,cl:()=>ke,dS:()=>ge,dp:()=>q,e4:()=>Ie,ed:()=>C,eg:()=>Ye,ey:()=>L,fk:()=>be,go:()=>Te,h:()=>Xe,i:()=>K,iJ:()=>He,jL:()=>B,jg:()=>X,jt:()=>Ue,lI:()=>F,mc:()=>Oe,mu:()=>R,ne:()=>H,nm:()=>D,sQ:()=>Ze,se:()=>P,tw:()=>xe,uN:()=>ye,uP:()=>le,uU:()=>te,vL:()=>Ee,vY:()=>re,vd:()=>Se,vx:()=>M,w:()=>Z,wY:()=>$e,wn:()=>J,xQ:()=>$,zB:()=>Le});var n=i(90882),o=i(53915),r=i(45429),s=i(75467),a=i(85398),l=i(98642),c=i(11271),d=i(29739),u=i(70959),h=i(50200),g=i(47606),p=i(63381),f=i(36606);const{registerWindow:m,getWindow:v,getDocument:_,getWindows:b,getWindowsCount:y,getWindowId:w,getWindowById:C,hasWindow:S,onDidRegisterWindow:x,onWillUnregisterWindow:k,onDidUnregisterWindow:L}=function(){const e=new Map;(0,f.HA)(f.Ex,1);const t={window:f.Ex,disposables:new u.SL};e.set(f.Ex.vscodeWindowId,t);const i=new c.Q5,n=new c.Q5,o=new c.Q5;function r(i,n){const o="number"===typeof i?e.get(i):void 0;return null!==o&&void 0!==o?o:n?t:void 0}return{onDidRegisterWindow:i.event,onWillUnregisterWindow:o.event,onDidUnregisterWindow:n.event,registerWindow(t){if(e.has(t.vscodeWindowId))return u.JT.None;const r=new u.SL,s={window:t,disposables:r.add(new u.SL)};return e.set(t.vscodeWindowId,s),r.add((0,u.OF)((()=>{e.delete(t.vscodeWindowId),n.fire(t)}))),r.add(D(t,xe.BEFORE_UNLOAD,(()=>{o.fire(t)}))),i.fire(s),r},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(e){return e.vscodeWindowId},hasWindow(t){return e.has(t)},getWindowById:r,getWindow(e){var t;const i=e;if(null===(t=null===i||void 0===i?void 0:i.ownerDocument)||void 0===t?void 0:t.defaultView)return i.ownerDocument.defaultView.window;const n=e;return(null===n||void 0===n?void 0:n.view)?n.view.window:f.Ex},getDocument(e){const t=e;return v(t).document}}}();function E(e){while(e.firstChild)e.firstChild.remove()}class N{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function D(e,t,i,n){return new N(e,t,i,n)}function T(e,t){return function(i){return t(new s.n(e,i))}}function I(e){return function(t){return e(new r.y(t))}}const R=function(e,t,i,n){let o=i;return"click"===t||"mousedown"===t?o=T(v(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=I(i)),D(e,t,o,n)},A=function(e,t,i){const n=T(v(e),t);return O(e,n,i)};function O(e,t,i){return D(e,g.gn&&o.D.pointerEvents?xe.POINTER_DOWN:xe.MOUSE_DOWN,t,i)}function P(e,t,i){return(0,a.y5)(e,t,i)}class M extends a.hF{constructor(e,t){super(e,t)}}let F,B;class H extends a.zh{constructor(e){super(),this.defaultTarget=e&&v(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,null!==i&&void 0!==i?i:this.defaultTarget)}}class W{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,l.dL)(e)}}static sort(e,t){return t.priority-e.priority}}function V(e){return v(e).getComputedStyle(e,null)}function j(e,t){const i=v(e),n=i.document;if(e!==n.body)return new U(e.clientWidth,e.clientHeight);if(g.gn&&(null===i||void 0===i?void 0:i.visualViewport))return new U(i.visualViewport.width,i.visualViewport.height);if((null===i||void 0===i?void 0:i.innerWidth)&&i.innerHeight)return new U(i.innerWidth,i.innerHeight);if(n.body&&n.body.clientWidth&&n.body.clientHeight)return new U(n.body.clientWidth,n.body.clientHeight);if(n.documentElement&&n.documentElement.clientWidth&&n.documentElement.clientHeight)return new U(n.documentElement.clientWidth,n.documentElement.clientHeight);if(t)return j(t);throw new Error("Unable to figure out browser width and height")}(function(){const e=new Map,t=new Map,i=new Map,n=new Map,o=o=>{var r;i.set(o,!1);const s=null!==(r=e.get(o))&&void 0!==r?r:[];t.set(o,s),e.set(o,[]),n.set(o,!0);while(s.length>0){s.sort(W.sort);const e=s.shift();e.execute()}n.set(o,!1)};B=(t,n,r=0)=>{const s=w(t),a=new W(n,r);let l=e.get(s);return l||(l=[],e.set(s,l)),l.push(a),i.get(s)||(i.set(s,!0),t.requestAnimationFrame((()=>o(s)))),a},F=(e,i,o)=>{const r=w(e);if(n.get(r)){const e=new W(i,o);let n=t.get(r);return n||(n=[],t.set(r,n)),n.push(e),e}return B(e,i,o)}})();class z{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const n=V(e),o=n?n.getPropertyValue(t):"0";return z.convertToPixels(e,o)}static getBorderLeftWidth(e){return z.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return z.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return z.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return z.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return z.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return z.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return z.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return z.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return z.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return z.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return z.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return z.getDimension(e,"margin-bottom","marginBottom")}}class U{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new U(e,t):this}static is(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}static lift(e){return e instanceof U?e:new U(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function $(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;while(null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement){i-=e.scrollTop;const o=ie(e)?null:V(e);o&&(n-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=z.getBorderLeftWidth(e),i+=z.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function q(e,t,i){"number"===typeof t&&(e.style.width=`${t}px`),"number"===typeof i&&(e.style.height=`${i}px`)}function K(e){const t=e.getBoundingClientRect(),i=v(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function G(e){let t=e,i=1;do{const e=V(t).zoom;null!==e&&void 0!==e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function Z(e){const t=z.getMarginLeft(e)+z.getMarginRight(e);return e.offsetWidth+t}function Q(e){const t=z.getBorderLeftWidth(e)+z.getBorderRightWidth(e),i=z.getPaddingLeft(e)+z.getPaddingRight(e);return e.offsetWidth-t-i}function Y(e){const t=z.getBorderTopWidth(e)+z.getBorderBottomWidth(e),i=z.getPaddingTop(e)+z.getPaddingBottom(e);return e.offsetHeight-t-i}function J(e){const t=z.getMarginTop(e)+z.getMarginBottom(e);return e.offsetHeight+t}function X(e,t){return Boolean(null===t||void 0===t?void 0:t.contains(e))}function ee(e,t,i){while(e&&e.nodeType===e.ELEMENT_NODE){if(e.classList.contains(t))return e;if(i)if("string"===typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}function te(e,t,i){return!!ee(e,t,i)}function ie(e){return e&&!!e.host&&!!e.mode}function ne(e){return!!oe(e)}function oe(e){var t;while(e.parentNode){if(e===(null===(t=e.ownerDocument)||void 0===t?void 0:t.body))return null;e=e.parentNode}return ie(e)?e:null}function re(){let e=le().activeElement;while(null===e||void 0===e?void 0:e.shadowRoot)e=e.shadowRoot.activeElement;return e}function se(e){return re()===e}function ae(e){return X(re(),e)}function le(){var e;if(y()<=1)return f.Ex.document;const t=Array.from(b()).map((({window:e})=>e.document));return null!==(e=t.find((e=>e.hasFocus())))&&void 0!==e?e:f.Ex.document}function ce(){var e,t;const i=le();return null!==(t=null===(e=i.defaultView)||void 0===e?void 0:e.window)&&void 0!==t?t:f.Ex}U.None=new U(0,0);const de=new Map;function ue(){return new he}class he{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=ge(f.Ex.document.head,(t=>t.innerText=e)))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function ge(e=f.Ex.document.head,t,i){const n=document.createElement("style");if(n.type="text/css",n.media="screen",null===t||void 0===t||t(n),e.appendChild(n),i&&i.add((0,u.OF)((()=>e.removeChild(n)))),e===f.Ex.document.head){const e=new Set;de.set(n,e);for(const{window:t,disposables:o}of b()){if(t===f.Ex)continue;const r=o.add(pe(n,e,t));null===i||void 0===i||i.add(r)}}return n}function pe(e,t,i){var n,o;const r=new u.SL,s=e.cloneNode(!0);i.document.head.appendChild(s),r.add((0,u.OF)((()=>i.document.head.removeChild(s))));for(const a of _e(e))null===(n=s.sheet)||void 0===n||n.insertRule(a.cssText,null===(o=s.sheet)||void 0===o?void 0:o.cssRules.length);return r.add(fe.observe(e,r,{childList:!0})((()=>{s.textContent=e.textContent}))),t.add(s),r.add((0,u.OF)((()=>t.delete(s)))),r}const fe=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let n=this.mutationObservers.get(e);n||(n=new Map,this.mutationObservers.set(e,n));const o=(0,p.vp)(i);let r=n.get(o);if(r)r.users+=1;else{const s=new c.Q5,a=new MutationObserver((e=>s.fire(e)));a.observe(e,i);const l=r={users:1,observer:a,onDidMutate:s.event};t.add((0,u.OF)((()=>{l.users-=1,0===l.users&&(s.dispose(),a.disconnect(),null===n||void 0===n||n.delete(o),0===(null===n||void 0===n?void 0:n.size)&&this.mutationObservers.delete(e))}))),n.set(o,r)}return r.onDidMutate}};let me=null;function ve(){return me||(me=ge()),me}function _e(e){var t,i;return(null===(t=null===e||void 0===e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(i=null===e||void 0===e?void 0:e.sheet)||void 0===i?void 0:i.cssRules)?e.sheet.cssRules:[]}function be(e,t,i=ve()){var n,o;if(i&&t){null===(n=i.sheet)||void 0===n||n.insertRule(`${e} {${t}}`,0);for(const n of null!==(o=de.get(i))&&void 0!==o?o:[])be(e,t,n)}}function ye(e,t=ve()){var i,n;if(!t)return;const o=_e(t),r=[];for(let s=0;s=0;s--)null===(i=t.sheet)||void 0===i||i.deleteRule(r[s]);for(const s of null!==(n=de.get(t))&&void 0!==n?n:[])ye(e,s)}function we(e){return"string"===typeof e.selectorText}function Ce(e){return e instanceof MouseEvent||e instanceof v(e).MouseEvent}function Se(e){return e instanceof KeyboardEvent||e instanceof v(e).KeyboardEvent}const xe={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n.Pf?"webkitAnimationStart":"animationstart",ANIMATION_END:n.Pf?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:n.Pf?"webkitAnimationIteration":"animationiteration"};function ke(e){const t=e;return!(!t||"function"!==typeof t.preventDefault||"function"!==typeof t.stopPropagation)}const Le={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function Ee(e){const t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function Ne(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class De extends u.JT{static hasFocusWithin(e){if(e instanceof HTMLElement){const t=oe(e),i=t?t.activeElement:e.ownerDocument.activeElement;return X(i,e)}{const t=e;return X(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new c.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new c.Q5),this.onDidBlur=this._onDidBlur.event;let t=De.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,(e instanceof HTMLElement?v(e):e).setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{const i=De.hasFocusWithin(e);i!==t&&(t?o():n())},this._register(D(e,xe.FOCUS,n,!0)),this._register(D(e,xe.BLUR,o,!0)),e instanceof HTMLElement&&(this._register(D(e,xe.FOCUS_IN,(()=>this._refreshStateHandler()))),this._register(D(e,xe.FOCUS_OUT,(()=>this._refreshStateHandler()))))}}function Te(e){return new De(e)}function Ie(e,t){return e.after(t),t}function Re(e,...t){if(e.append(...t),1===t.length&&"string"!==typeof t[0])return t[0]}function Ae(e,t){return e.insertBefore(t,e.firstChild),t}function Oe(e,...t){e.innerText="",Re(e,...t)}const Pe=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Me;function Fe(e,t,i,...n){const o=Pe.exec(t);if(!o)throw new Error("Bad use of emmet");const r=o[1]||"div";let s;return s=e!==Me.HTML?document.createElementNS(e,r):document.createElement(r),o[3]&&(s.id=o[3]),o[4]&&(s.className=o[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach((([e,t])=>{"undefined"!==typeof t&&(/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t))})),s.append(...n),s}function Be(e,t,...i){return Fe(Me.HTML,e,t,...i)}function He(e,...t){e?We(...t):Ve(...t)}function We(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function Ve(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function je(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function ze(e){f.Ex.open(e,"_blank","noopener")}function Ue(e,t){const i=()=>{t(),n=B(e,i)};let n=B(e,i);return(0,u.OF)((()=>n.dispose()))}function $e(e){return e?`url('${h.Gi.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function qe(e){return`'${e.replace(/'/g,"%27")}'`}function Ke(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Ke(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function Ge(e,t=!1){const i=document.createElement("a");return d.v5("afterSanitizeAttributes",(n=>{for(const o of["href","src"])if(n.hasAttribute(o)){const r=n.getAttribute(o);if("href"===o&&r.startsWith("#"))continue;if(i.href=r,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===o&&i.href.startsWith("data:"))continue;n.removeAttribute(o)}}})),(0,u.OF)((()=>{d.ok("afterSanitizeAttributes")}))}(function(e){e["HTML"]="http://www.w3.org/1999/xhtml",e["SVG"]="http://www.w3.org/2000/svg"})(Me||(Me={})),Be.SVG=function(e,t,...i){return Fe(Me.SVG,e,t,...i)},h.WX.setPreferredWebSchema(/^https:/.test(f.Ex.location.href)?"https":"http");const Ze=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class Qe extends c.Q5{constructor(){super(),this._subscriptions=new u.SL,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(c.ju.runAndSubscribe(x,(({window:e,disposables:t})=>this.registerListeners(e,t)),{window:f.Ex,disposables:this._subscriptions}))}registerListeners(e,t){t.add(D(e,"keydown",(e=>{if(e.defaultPrevented)return;const t=new r.y(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}),!0)),t.add(D(e,"keyup",(e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))}),!0)),t.add(D(e.document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(D(e.document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(D(e.document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),t.add(D(e,"blur",(()=>{this.resetKeyStatus()})))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Qe.instance||(Qe.instance=new Qe),Qe.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Ye extends u.JT{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(D(this.element,xe.DRAG_START,(e=>{var t,i;null===(i=(t=this.callbacks).onDragStart)||void 0===i||i.call(t,e)}))),this.callbacks.onDrag&&this._register(D(this.element,xe.DRAG,(e=>{var t,i;null===(i=(t=this.callbacks).onDrag)||void 0===i||i.call(t,e)}))),this._register(D(this.element,xe.DRAG_ENTER,(e=>{var t,i;this.counter++,this.dragStartTime=e.timeStamp,null===(i=(t=this.callbacks).onDragEnter)||void 0===i||i.call(t,e)}))),this._register(D(this.element,xe.DRAG_OVER,(e=>{var t,i;e.preventDefault(),null===(i=(t=this.callbacks).onDragOver)||void 0===i||i.call(t,e,e.timeStamp-this.dragStartTime)}))),this._register(D(this.element,xe.DRAG_LEAVE,(e=>{var t,i;this.counter--,0===this.counter&&(this.dragStartTime=0,null===(i=(t=this.callbacks).onDragLeave)||void 0===i||i.call(t,e))}))),this._register(D(this.element,xe.DRAG_END,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDragEnd)||void 0===i||i.call(t,e)}))),this._register(D(this.element,xe.DROP,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDrop)||void 0===i||i.call(t,e)})))}}const Je=/(?[\w\-]+)?(?:#(?[\w\-]+))?(?(?:\.(?:[\w\-]+))*)(?:@(?(?:[\w\_])+))?/;function Xe(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);const o=Je.exec(e);if(!o||!o.groups)throw new Error("Bad use of h");const r=o.groups["tag"]||"div",s=document.createElement(r);o.groups["id"]&&(s.id=o.groups["id"]);const a=[];if(o.groups["class"])for(const c of o.groups["class"].split("."))""!==c&&a.push(c);if(void 0!==i.className)for(const c of i.className.split("."))""!==c&&a.push(c);a.length>0&&(s.className=a.join(" "));const l={};if(o.groups["name"]&&(l[o.groups["name"]]=s),n)for(const c of n)c instanceof HTMLElement?s.appendChild(c):"string"===typeof c?s.append(c):"root"in c&&(Object.assign(l,c),s.appendChild(c.root));for(const[c,d]of Object.entries(i))if("className"!==c)if("style"===c)for(const[e,t]of Object.entries(d))s.style.setProperty(et(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===c?s.tabIndex=d:s.setAttribute(et(c),d.toString());return l["root"]=s,l}function et(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},29739:(e,t,i)=>{"use strict";i.d(t,{Nw:()=>ee,ok:()=>ie,v5:()=>te}); /*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */ -const{entries:n,setPrototypeOf:o,isFrozen:s,getPrototypeOf:r,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:c,create:d}=Object,{apply:u,construct:h}="undefined"!==typeof Reflect&&Reflect;u||(u=function(e,t,i){return e.apply(t,i)}),l||(l=function(e){return e}),c||(c=function(e){return e}),h||(h=function(e,t){return new e(...t)});const g=x(Array.prototype.forEach),p=x(Array.prototype.pop),f=x(Array.prototype.push),m=x(String.prototype.toLowerCase),v=x(String.prototype.toString),_=x(String.prototype.match),b=x(String.prototype.replace),y=x(String.prototype.indexOf),w=x(String.prototype.trim),C=x(RegExp.prototype.test),S=k(TypeError);function x(e){return function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o/gm),j=c(/\${[\w\W]*}/gm),z=c(/^data-[\-\w.\u00B7-\uFFFF]/),U=c(/^aria-[\-\w]+$/),$=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=c(/^(?:\w+script|data):/i),K=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=c(/^html$/i);var Z=Object.freeze({__proto__:null,MUSTACHE_EXPR:W,ERB_EXPR:V,TMPLIT_EXPR:j,DATA_ATTR:z,ARIA_ATTR:U,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:K,DOCTYPE_NAME:G});const Q=()=>"undefined"===typeof window?null:window,Y=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML(e){return e},createScriptURL(e){return e}})}catch(s){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function J(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q();const t=e=>J(e);if(t.version="3.0.5",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;const i=e.document,o=i.currentScript;let{document:s}=e;const{DocumentFragment:r,HTMLTemplateElement:a,Node:c,Element:d,NodeFilter:u,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:x,DOMParser:k,trustedTypes:W}=e,V=d.prototype,j=N(V,"cloneNode"),z=N(V,"nextSibling"),U=N(V,"childNodes"),q=N(V,"parentNode");if("function"===typeof a){const e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let K,X="";const{implementation:ee,createNodeIterator:te,createDocumentFragment:ie,getElementsByTagName:ne}=s,{importNode:oe}=i;let se={};t.isSupported="function"===typeof n&&"function"===typeof q&&ee&&void 0!==ee.createHTMLDocument;const{MUSTACHE_EXPR:re,ERB_EXPR:ae,TMPLIT_EXPR:le,DATA_ATTR:ce,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:he}=Z;let{IS_ALLOWED_URI:ge}=Z,pe=null;const fe=L({},[...D,...T,...I,...A,...P]);let me=null;const ve=L({},[...M,...F,...B,...H]);let _e=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,ye=null,we=!0,Ce=!0,Se=!1,xe=!0,ke=!1,Le=!1,Ee=!1,Ne=!1,De=!1,Te=!1,Ie=!1,Re=!0,Ae=!1;const Oe="user-content-";let Pe=!0,Me=!1,Fe={},Be=null;const He=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let We=null;const Ve=L({},["audio","video","img","source","image","track"]);let je=null;const ze=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ue="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",qe="http://www.w3.org/1999/xhtml";let Ke=qe,Ge=!1,Ze=null;const Qe=L({},[Ue,$e,qe],v);let Ye;const Je=["application/xhtml+xml","text/html"],Xe="text/html";let et,tt=null;const it=s.createElement("form"),nt=function(e){return e instanceof RegExp||e instanceof Function},ot=function(e){if(!tt||tt!==e){if(e&&"object"===typeof e||(e={}),e=E(e),Ye=Ye=-1===Je.indexOf(e.PARSER_MEDIA_TYPE)?Xe:e.PARSER_MEDIA_TYPE,et="application/xhtml+xml"===Ye?v:m,pe="ALLOWED_TAGS"in e?L({},e.ALLOWED_TAGS,et):fe,me="ALLOWED_ATTR"in e?L({},e.ALLOWED_ATTR,et):ve,Ze="ALLOWED_NAMESPACES"in e?L({},e.ALLOWED_NAMESPACES,v):Qe,je="ADD_URI_SAFE_ATTR"in e?L(E(ze),e.ADD_URI_SAFE_ATTR,et):ze,We="ADD_DATA_URI_TAGS"in e?L(E(Ve),e.ADD_DATA_URI_TAGS,et):Ve,Be="FORBID_CONTENTS"in e?L({},e.FORBID_CONTENTS,et):He,be="FORBID_TAGS"in e?L({},e.FORBID_TAGS,et):{},ye="FORBID_ATTR"in e?L({},e.FORBID_ATTR,et):{},Fe="USE_PROFILES"in e&&e.USE_PROFILES,we=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,Le=e.WHOLE_DOCUMENT||!1,De=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,Re=!1!==e.SANITIZE_DOM,Ae=e.SANITIZE_NAMED_PROPS||!1,Pe=!1!==e.KEEP_CONTENT,Me=e.IN_PLACE||!1,ge=e.ALLOWED_URI_REGEXP||$,Ke=e.NAMESPACE||qe,_e=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(_e.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(Ce=!1),Te&&(De=!0),Fe&&(pe=L({},[...P]),me=[],!0===Fe.html&&(L(pe,D),L(me,M)),!0===Fe.svg&&(L(pe,T),L(me,F),L(me,H)),!0===Fe.svgFilters&&(L(pe,I),L(me,F),L(me,H)),!0===Fe.mathMl&&(L(pe,A),L(me,B),L(me,H))),e.ADD_TAGS&&(pe===fe&&(pe=E(pe)),L(pe,e.ADD_TAGS,et)),e.ADD_ATTR&&(me===ve&&(me=E(me)),L(me,e.ADD_ATTR,et)),e.ADD_URI_SAFE_ATTR&&L(je,e.ADD_URI_SAFE_ATTR,et),e.FORBID_CONTENTS&&(Be===He&&(Be=E(Be)),L(Be,e.FORBID_CONTENTS,et)),Pe&&(pe["#text"]=!0),Le&&L(pe,["html","head","body"]),pe.table&&(L(pe,["tbody"]),delete be.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');K=e.TRUSTED_TYPES_POLICY,X=K.createHTML("")}else void 0===K&&(K=Y(W,o)),null!==K&&"string"===typeof X&&(X=K.createHTML(""));l&&l(e),tt=e}},st=L({},["mi","mo","mn","ms","mtext"]),rt=L({},["foreignobject","desc","title","annotation-xml"]),at=L({},["title","style","font","a","script"]),lt=L({},T);L(lt,I),L(lt,R);const ct=L({},A);L(ct,O);const dt=function(e){let t=q(e);t&&t.tagName||(t={namespaceURI:Ke,tagName:"template"});const i=m(e.tagName),n=m(t.tagName);return!!Ze[e.namespaceURI]&&(e.namespaceURI===$e?t.namespaceURI===qe?"svg"===i:t.namespaceURI===Ue?"svg"===i&&("annotation-xml"===n||st[n]):Boolean(lt[i]):e.namespaceURI===Ue?t.namespaceURI===qe?"math"===i:t.namespaceURI===$e?"math"===i&&rt[n]:Boolean(ct[i]):e.namespaceURI===qe?!(t.namespaceURI===$e&&!rt[n])&&(!(t.namespaceURI===Ue&&!st[n])&&(!ct[i]&&(at[i]||!lt[i]))):!("application/xhtml+xml"!==Ye||!Ze[e.namespaceURI]))},ut=function(e){f(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(i){e.remove()}},ht=function(e,i){try{f(t.removed,{attribute:i.getAttributeNode(e),from:i})}catch(n){f(t.removed,{attribute:null,from:i})}if(i.removeAttribute(e),"is"===e&&!me[e])if(De||Te)try{ut(i)}catch(n){}else try{i.setAttribute(e,"")}catch(n){}},gt=function(e){let t,i;if(Ne)e=""+e;else{const t=_(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===Ye&&Ke===qe&&(e=''+e+"");const n=K?K.createHTML(e):e;if(Ke===qe)try{t=(new k).parseFromString(n,Ye)}catch(r){}if(!t||!t.documentElement){t=ee.createDocument(Ke,"template",null);try{t.documentElement.innerHTML=Ge?X:n}catch(r){}}const o=t.body||t.documentElement;return e&&i&&o.insertBefore(s.createTextNode(i),o.childNodes[0]||null),Ke===qe?ne.call(t,Le?"html":"body")[0]:Le?t.documentElement:o},pt=function(e){return te.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},ft=function(e){return e instanceof x&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof h)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},mt=function(e){return"object"===typeof c?e instanceof c:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},vt=function(e,i,n){se[e]&&g(se[e],(e=>{e.call(t,i,n,tt)}))},_t=function(e){let i;if(vt("beforeSanitizeElements",e,null),ft(e))return ut(e),!0;const n=et(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:n,allowedTags:pe}),e.hasChildNodes()&&!mt(e.firstElementChild)&&(!mt(e.content)||!mt(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return ut(e),!0;if(!pe[n]||be[n]){if(!be[n]&&yt(n)){if(_e.tagNameCheck instanceof RegExp&&C(_e.tagNameCheck,n))return!1;if(_e.tagNameCheck instanceof Function&&_e.tagNameCheck(n))return!1}if(Pe&&!Be[n]){const t=q(e)||e.parentNode,i=U(e)||e.childNodes;if(i&&t){const n=i.length;for(let o=n-1;o>=0;--o)t.insertBefore(j(i[o],!0),z(e))}}return ut(e),!0}return e instanceof d&&!dt(e)?(ut(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!C(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&3===e.nodeType&&(i=e.textContent,i=b(i,re," "),i=b(i,ae," "),i=b(i,le," "),e.textContent!==i&&(f(t.removed,{element:e.cloneNode()}),e.textContent=i)),vt("afterSanitizeElements",e,null),!1):(ut(e),!0)},bt=function(e,t,i){if(Re&&("id"===t||"name"===t)&&(i in s||i in it))return!1;if(Ce&&!ye[t]&&C(ce,t));else if(we&&C(de,t));else if(!me[t]||ye[t]){if(!(yt(e)&&(_e.tagNameCheck instanceof RegExp&&C(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&C(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t))||"is"===t&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&C(_e.tagNameCheck,i)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(i))))return!1}else if(je[t]);else if(C(ge,b(i,he,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(i,"data:")||!We[e]){if(Se&&!C(ue,b(i,he,"")));else if(i)return!1}else;return!0},yt=function(e){return e.indexOf("-")>0},wt=function(e){let i,n,o,s;vt("beforeSanitizeAttributes",e,null);const{attributes:r}=e;if(!r)return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};s=r.length;while(s--){i=r[s];const{name:c,namespaceURI:d}=i;if(n="value"===c?i.value:w(i.value),o=et(c),a.attrName=o,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,a),n=a.attrValue,a.forceKeepAttr)continue;if(ht(c,e),!a.keepAttr)continue;if(!xe&&C(/\/>/i,n)){ht(c,e);continue}ke&&(n=b(n,re," "),n=b(n,ae," "),n=b(n,le," "));const u=et(e.nodeName);if(bt(u,o,n)){if(!Ae||"id"!==o&&"name"!==o||(ht(c,e),n=Oe+n),K&&"object"===typeof W&&"function"===typeof W.getAttributeType)if(d);else switch(W.getAttributeType(u,o)){case"TrustedHTML":n=K.createHTML(n);break;case"TrustedScriptURL":n=K.createScriptURL(n);break}try{d?e.setAttributeNS(d,c,n):e.setAttribute(c,n),p(t.removed)}catch(l){}}}vt("afterSanitizeAttributes",e,null)},Ct=function e(t){let i;const n=pt(t);vt("beforeSanitizeShadowDOM",t,null);while(i=n.nextNode())vt("uponSanitizeShadowNode",i,null),_t(i)||(i.content instanceof r&&e(i.content),wt(i));vt("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(e){let n,o,s,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ge=!e,Ge&&(e="\x3c!--\x3e"),"string"!==typeof e&&!mt(e)){if("function"!==typeof e.toString)throw S("toString is not a function");if(e=e.toString(),"string"!==typeof e)throw S("dirty is not a string, aborting")}if(!t.isSupported)return e;if(Ee||ot(l),t.removed=[],"string"===typeof e&&(Me=!1),Me){if(e.nodeName){const t=et(e.nodeName);if(!pe[t]||be[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)n=gt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!De&&!ke&&!Le&&-1===e.indexOf("<"))return K&&Ie?K.createHTML(e):e;if(n=gt(e),!n)return De?null:Ie?X:""}n&&Ne&&ut(n.firstChild);const d=pt(Me?e:n);while(s=d.nextNode())_t(s)||(s.content instanceof r&&Ct(s.content),wt(s));if(Me)return e;if(De){if(Te){a=ie.call(n.ownerDocument);while(n.firstChild)a.appendChild(n.firstChild)}else a=n;return(me.shadowroot||me.shadowrootmode)&&(a=oe.call(i,a,!0)),a}let u=Le?n.outerHTML:n.innerHTML;return Le&&pe["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&C(G,n.ownerDocument.doctype.name)&&(u="\n"+u),ke&&(u=b(u,re," "),u=b(u,ae," "),u=b(u,le," ")),K&&Ie?K.createHTML(u):u},t.setConfig=function(e){ot(e),Ee=!0},t.clearConfig=function(){tt=null,Ee=!1},t.isValidAttribute=function(e,t,i){tt||ot({});const n=et(e),o=et(t);return bt(n,o,i)},t.addHook=function(e,t){"function"===typeof t&&(se[e]=se[e]||[],f(se[e],t))},t.removeHook=function(e){if(se[e])return p(se[e])},t.removeHooks=function(e){se[e]&&(se[e]=[])},t.removeAllHooks=function(){se={}},t}var X=J();X.version,X.isSupported;const ee=X.sanitize,te=(X.setConfig,X.clearConfig,X.isValidAttribute,X.addHook),ie=X.removeHook;X.removeHooks,X.removeAllHooks},9172:(e,t,i)=>{"use strict";i.d(t,{Y:()=>o});var n=i(11271);class o{get event(){return this.emitter.event}constructor(e,t,i){const o=e=>this.emitter.fire(e);this.emitter=new n.Q5({onWillAddFirstListener:()=>e.addEventListener(t,o,i),onDidRemoveLastListener:()=>e.removeEventListener(t,o,i)})}dispose(){this.emitter.dispose()}}},26090:(e,t,i)=>{"use strict";i.d(t,{X:()=>s,Z:()=>n});class n{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=o(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=o(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=o(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=o(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=o(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=o(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=o(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=o(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=o(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=o(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=o(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function o(e){return"number"===typeof e?`${e}px`:e}function s(e){return new n(e)}},73228:(e,t,i)=>{"use strict";i.d(t,{BO:()=>s,IY:()=>o,az:()=>r});var n=i(2548);function o(e,t={}){const i=r(t);return i.textContent=e,i}function s(e,t={}){const i=r(t);return l(i,c(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function r(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function l(e,t,i,o){let s;if(2===t.type)s=document.createTextNode(t.content||"");else if(3===t.type)s=document.createElement("b");else if(4===t.type)s=document.createElement("i");else if(7===t.type&&o)s=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");i.disposables.add(n.mu(e,"click",(e=>{i.callback(String(t.index),e)}))),s=e}else 8===t.type?s=document.createElement("br"):1===t.type&&(s=e);s&&e!==s&&e.appendChild(s),s&&Array.isArray(t.children)&&t.children.forEach((e=>{l(s,e,i,o)}))}function c(e,t){const i={type:1,children:[]};let n=0,o=i;const s=[],r=new a(e);while(!r.eos()){let e=r.next();const i="\\"===e&&0!==u(r.peek(),t);if(i&&(e=r.next()),!i&&d(e,t)&&e===r.peek()){r.advance(),2===o.type&&(o=s.pop());const i=u(e,t);if(o.type===i||5===o.type&&6===i)o=s.pop();else{const e={type:i,children:[]};5===i&&(e.index=n,n++),o.children.push(e),s.push(o),o=e}}else if("\n"===e)2===o.type&&(o=s.pop()),o.children.push({type:8});else if(2!==o.type){const t={type:2,content:e};o.children.push(t),s.push(o),o=t}else o.content+=e}return 2===o.type&&(o=s.pop()),s.length,i}function d(e,t){return 0!==u(e,t)}function u(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},75853:(e,t,i)=>{"use strict";i.d(t,{C:()=>s});var n=i(2548),o=i(70959);class s{constructor(){this._hooks=new o.SL,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,s,r){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=s,this._onStopCallback=r;let a=e;try{e.setPointerCapture(t),this._hooks.add((0,o.OF)((()=>{try{e.releasePointerCapture(t)}catch(i){}})))}catch(l){a=n.Jj(e)}this._hooks.add(n.nm(a,n.tw.POINTER_MOVE,(e=>{e.buttons===i?(e.preventDefault(),this._pointerMoveCallback(e)):this.stopMonitoring(!0)}))),this._hooks.add(n.nm(a,n.tw.POINTER_UP,(e=>this.stopMonitoring(!0))))}}},45429:(e,t,i)=>{"use strict";i.d(t,{y:()=>h});var n=i(90882),o=i(56082),s=i(19321),r=i(47606);function a(e){if(e.charCode){const t=String.fromCharCode(e.charCode).toUpperCase();return o.kL.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(n.vU)switch(t){case 59:return 85;case 60:if(r.IJ)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(r.dz)return 57;break}else if(n.Pf){if(r.dz&&93===t)return 57;if(!r.dz&&92===t)return 57}return o.H_[t]||0}const l=r.dz?256:2048,c=512,d=1024,u=r.dz?2048:256;class h{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState("AltGraph"),this.keyCode=a(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=l),this.altKey&&(t|=c),this.shiftKey&&(t|=d),this.metaKey&&(t|=u),t|=e,t}_computeKeyCodeChord(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new s.$M(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},98162:(e,t,i)=>{"use strict";i.d(t,{ap:()=>L,et:()=>R});var n=i(2548),o=i(29739),s=i(9172),r=i(73228),a=i(45429),l=i(75467),c=i(66426),d=i(98642),u=i(11271),h=i(81478),g=i(96559),p=i(58247),f=i(21815),m=i(70959);let v={};(function(){function e(e,t){t(v)}e.amd=!0,function(t,i){"function"===typeof e&&e.amd?e(["exports"],i):"object"===typeof exports?i(exports):(t="undefined"!==typeof globalThis?globalThis:t||self,i(t.marked={}))}(this,(function(e){function t(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,n=new Array(t);i=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function a(t){e.defaults=t}e.defaults=r();var l=/[&<>"']/,c=/[&<>"']/g,d=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"},g=function(e){return h[e]};function p(e,t){if(t){if(l.test(e))return e.replace(c,g)}else if(d.test(e))return e.replace(u,g);return e}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(e){return e.replace(f,(function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var v=/(^|[^\[])\^/g;function _(e,t){e="string"===typeof e?e:e.source,t=t||"";var i={replace:function(t,n){return n=n.source||n,n=n.replace(v,"$1"),e=e.replace(t,n),i},getRegex:function(){return new RegExp(e,t)}};return i}var b=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function w(e,t,i){if(e){var n;try{n=decodeURIComponent(m(i)).replace(b,"").toLowerCase()}catch(o){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!y.test(i)&&(i=L(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(o){return null}return i}var C={},S=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/;function L(e,t){C[" "+e]||(S.test(e)?C[" "+e]=e+"/":C[" "+e]=T(e,"/",!0)),e=C[" "+e];var i=-1===e.indexOf(":");return"//"===t.substring(0,2)?i?t:e.replace(x,"$1")+t:"/"===t.charAt(0)?i?t:e.replace(k,"$1")+t:e+t}var E={exec:function(){}};function N(e){for(var t,i,n=1;n=0&&"\\"===i[o])n=!n;return n?"|":" |"})),n=i.split(/ \|/),o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else while(n.length1)1&t&&(i+=e),t>>=1,e+=e;return i+e}function O(e,t,i,n){var o=t.href,s=t.title?p(t.title):null,r=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var a={type:"link",raw:i,href:o,title:s,text:r,tokens:n.inlineTokens(r)};return n.state.inLink=!1,a}return{type:"image",raw:i,href:o,title:s,text:p(r)}}function P(e,t){var i=e.match(/^(\s+)(?:```)/);if(null===i)return t;var n=i[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);if(null===t)return e;var i=t[0];return i.length>=n.length?e.slice(n.length):e})).join("\n")}var M=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},i.code=function(e){var t=this.rules.block.code.exec(e);if(t){var i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:T(i,"\n")}}},i.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var i=t[0],n=P(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:n}}},i.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var i=t[2].trim();if(/#$/.test(i)){var n=T(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}},i.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},i.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var i=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}},i.list=function(e){var t=this.rules.block.list.exec(e);if(t){var i,n,o,r,a,l,c,d,u,h,g,p,f=t[1].trim(),m=f.length>1,v={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?"\\d{1,9}\\"+f.slice(-1):"\\"+f,this.options.pedantic&&(f=m?f:"[*+-]");var _=new RegExp("^( {0,3}"+f+")((?:[\t ][^\\n]*)?(?:\\n|$))");while(e){if(p=!1,!(t=_.exec(e)))break;if(this.rules.block.hr.test(e))break;if(i=t[0],e=e.substring(i.length),d=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(r=2,g=d.trimLeft()):(r=t[2].search(/[^ ]/),r=r>4?1:r,g=d.slice(r),r+=t[1].length),l=!1,!d&&/^ *$/.test(u)&&(i+=u+"\n",e=e.substring(u.length+1),p=!0),!p){var b=new RegExp("^ {0,"+Math.min(3,r-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),y=new RegExp("^ {0,"+Math.min(3,r-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),w=new RegExp("^ {0,"+Math.min(3,r-1)+"}(?:```|~~~)"),C=new RegExp("^ {0,"+Math.min(3,r-1)+"}#");while(e){if(h=e.split("\n",1)[0],d=h,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),w.test(d))break;if(C.test(d))break;if(b.test(d))break;if(y.test(e))break;if(d.search(/[^ ]/)>=r||!d.trim())g+="\n"+d.slice(r);else{if(l)break;g+="\n"+d}l||d.trim()||(l=!0),i+=h+"\n",e=e.substring(h.length+1)}}v.loose||(c?v.loose=!0:/\n *\n *$/.test(i)&&(c=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(g),n&&(o="[ ] "!==n[0],g=g.replace(/^\[[ xX]\] +/,""))),v.items.push({type:"list_item",raw:i,task:!!n,checked:o,loose:!1,text:g}),v.raw+=i}v.items[v.items.length-1].raw=i.trimRight(),v.items[v.items.length-1].text=g.trimRight(),v.raw=v.raw.trimRight();var S=v.items.length;for(a=0;a1)return!0}return!1}));!v.loose&&x.length&&k&&(v.loose=!0,v.items[a].loose=!0)}return v}},i.html=function(e){var t=this.rules.block.html.exec(e);if(t){var i={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){var n=this.options.sanitizer?this.options.sanitizer(t[0]):p(t[0]);i.type="paragraph",i.text=n,i.tokens=this.lexer.inline(n)}return i}},i.def=function(e){var t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));var i=t[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:i,raw:t[0],href:t[2],title:t[3]}}},i.table=function(e){var t=this.rules.block.table.exec(e);if(t){var i={type:"table",header:D(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=t[0];var n,o,s,r,a=i.align.length;for(n=0;n/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):p(t[0]):t[0]}},i.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var i=t[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;var n=T(i.slice(0,-1),"\\");if((i.length-n.length)%2===0)return}else{var o=I(t[2],"()");if(o>-1){var s=0===t[0].indexOf("!")?5:4,r=s+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,r).trim(),t[3]=""}}var a=t[2],l="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);c&&(a=c[1],l=c[3])}else l=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^$/.test(i)?a.slice(1):a.slice(1,-1)),O(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:l?l.replace(this.rules.inline._escapes,"$1"):l},t[0],this.lexer)}},i.reflink=function(e,t){var i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(n=t[n.toLowerCase()],!n||!n.href){var o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return O(i,n,i[0],this.lexer)}},i.emStrong=function(e,t,i){void 0===i&&(i="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!i.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var o=n[1]||n[2]||"";if(!o||o&&(""===i||this.rules.inline.punctuation.exec(i))){var s,r,a=n[0].length-1,l=a,c=0,d="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;d.lastIndex=0,t=t.slice(-1*e.length+a);while(null!=(n=d.exec(t)))if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],s)if(r=s.length,n[3]||n[4])l+=r;else if(!((n[5]||n[6])&&a%3)||(a+r)%3){if(l-=r,!(l>0)){if(r=Math.min(r,r+l+c),Math.min(a,r)%2){var u=e.slice(1,a+n.index+r);return{type:"em",raw:e.slice(0,a+n.index+r+1),text:u,tokens:this.lexer.inlineTokens(u)}}var h=e.slice(2,a+n.index+r-1);return{type:"strong",raw:e.slice(0,a+n.index+r+1),text:h,tokens:this.lexer.inlineTokens(h)}}}else c+=r}}},i.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var i=t[2].replace(/\n/g," "),n=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return n&&o&&(i=i.substring(1,i.length-1)),i=p(i,!0),{type:"codespan",raw:t[0],text:i}}},i.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},i.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}},i.autolink=function(e,t){var i,n,o=this.rules.inline.autolink.exec(e);if(o)return"@"===o[2]?(i=p(this.options.mangle?t(o[1]):o[1]),n="mailto:"+i):(i=p(o[1]),n=i),{type:"link",raw:o[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},i.url=function(e,t){var i;if(i=this.rules.inline.url.exec(e)){var n,o;if("@"===i[2])n=p(this.options.mangle?t(i[0]):i[0]),o="mailto:"+n;else{var s;do{s=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(s!==i[0]);n=p(i[0]),o="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}},i.inlineText=function(e,t){var i,n=this.rules.inline.text.exec(e);if(n)return i=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):p(n[0]):n[0]:p(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}},t}(),F={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:E,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};F.def=_(F.def).replace("label",F._label).replace("title",F._title).getRegex(),F.bullet=/(?:[*+-]|\d{1,9}[.)])/,F.listItemStart=_(/^( *)(bull) */).replace("bull",F.bullet).getRegex(),F.list=_(F.list).replace(/bull/g,F.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+F.def.source+")").getRegex(),F._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",F._comment=/|$)/,F.html=_(F.html,"i").replace("comment",F._comment).replace("tag",F._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),F.paragraph=_(F._paragraph).replace("hr",F.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",F._tag).getRegex(),F.blockquote=_(F.blockquote).replace("paragraph",F.paragraph).getRegex(),F.normal=N({},F),F.gfm=N({},F.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),F.gfm.table=_(F.gfm.table).replace("hr",F.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",F._tag).getRegex(),F.gfm.paragraph=_(F._paragraph).replace("hr",F.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",F.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",F._tag).getRegex(),F.pedantic=N({},F.normal,{html:_("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",F._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:E,paragraph:_(F.normal._paragraph).replace("hr",F.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",F.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var B={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:E,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:E,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}B._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",B.punctuation=_(B.punctuation).replace(/punctuation/g,B._punctuation).getRegex(),B.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,B.escapedEmSt=/\\\*|\\_/g,B._comment=_(F._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),B.emStrong.lDelim=_(B.emStrong.lDelim).replace(/punct/g,B._punctuation).getRegex(),B.emStrong.rDelimAst=_(B.emStrong.rDelimAst,"g").replace(/punct/g,B._punctuation).getRegex(),B.emStrong.rDelimUnd=_(B.emStrong.rDelimUnd,"g").replace(/punct/g,B._punctuation).getRegex(),B._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,B._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,B._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,B.autolink=_(B.autolink).replace("scheme",B._scheme).replace("email",B._email).getRegex(),B._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,B.tag=_(B.tag).replace("comment",B._comment).replace("attribute",B._attribute).getRegex(),B._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,B._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,B._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,B.link=_(B.link).replace("label",B._label).replace("href",B._href).replace("title",B._title).getRegex(),B.reflink=_(B.reflink).replace("label",B._label).replace("ref",F._label).getRegex(),B.nolink=_(B.nolink).replace("ref",F._label).getRegex(),B.reflinkSearch=_(B.reflinkSearch,"g").replace("reflink",B.reflink).replace("nolink",B.nolink).getRegex(),B.normal=N({},B),B.pedantic=N({},B.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:_(/^!?\[(label)\]\((.*?)\)/).replace("label",B._label).getRegex(),reflink:_(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",B._label).getRegex()}),B.gfm=N({},B.normal,{escape:_(B.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\0?t[t.length-1].raw+="\n":t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(i):(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(o=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,i=e.slice(1),n=void 0;r.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},i),"number"===typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),this.state.top&&(i=this.tokenizer.paragraph(o)))n=t[t.length-1],s&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},n.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},n.inlineTokens=function(e,t){var i,n,o,s=this;void 0===t&&(t=[]);var r,a,l,c=e;if(this.tokens.links){var d=Object.keys(this.tokens.links);if(d.length>0)while(null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(c)))d.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,r.index)+"["+A("a",r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(r=this.tokenizer.rules.inline.blockSkip.exec(c)))c=c.slice(0,r.index)+"["+A("a",r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(c)))c=c.slice(0,r.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);while(e)if(a||(l=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(i=n.call({lexer:s},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),n=t[t.length-1],n&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),n=t[t.length-1],n&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,c,l))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e,W))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e,W))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,i=e.slice(1),n=void 0;s.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},i),"number"===typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(o,H))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),a=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(e){var u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}else e=e.substring(i.raw.length),t.push(i);return t},i(t,null,[{key:"rules",get:function(){return{block:F,inline:B}}}]),t}(),j=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.code=function(e,t,i){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,n);null!=o&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+"\n",n?'
'+(i?e:p(e,!0))+"
\n":"
"+(i?e:p(e,!0))+"
\n"},i.blockquote=function(e){return"
\n"+e+"
\n"},i.html=function(e){return e},i.heading=function(e,t,i,n){if(this.options.headerIds){var o=this.options.headerPrefix+n.slug(i);return"'+e+"\n"}return""+e+"\n"},i.hr=function(){return this.options.xhtml?"
\n":"
\n"},i.list=function(e,t,i){var n=t?"ol":"ul",o=t&&1!==i?' start="'+i+'"':"";return"<"+n+o+">\n"+e+"\n"},i.listitem=function(e){return"
  • "+e+"
  • \n"},i.checkbox=function(e){return" "},i.paragraph=function(e){return"

    "+e+"

    \n"},i.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},i.tablerow=function(e){return"\n"+e+"\n"},i.tablecell=function(e,t){var i=t.header?"th":"td",n=t.align?"<"+i+' align="'+t.align+'">':"<"+i+">";return n+e+"\n"},i.strong=function(e){return""+e+""},i.em=function(e){return""+e+""},i.codespan=function(e){return""+e+""},i.br=function(){return this.options.xhtml?"
    ":"
    "},i.del=function(e){return""+e+""},i.link=function(e,t,i){if(e=w(this.options.sanitize,this.options.baseUrl,e),null===e)return i;var n='",n},i.image=function(e,t,i){if(e=w(this.options.sanitize,this.options.baseUrl,e),null===e)return i;var n=''+i+'":">",n},i.text=function(e){return e},t}(),z=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),U=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{n++,i=e+"-"+n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),$=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new j,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new z,this.slugger=new U}t.parse=function(e,i){var n=new t(i);return n.parse(e)},t.parseInline=function(e,i){var n=new t(i);return n.parseInline(e)};var i=t.prototype;return i.parse=function(e,t){void 0===t&&(t=!0);var i,n,o,s,r,a,l,c,d,u,h,g,p,f,v,_,b,y,w,C="",S=e.length;for(i=0;i0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=y+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=y+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(v.tokens,p),d+=this.renderer.listitem(f,b,_);C+=this.renderer.list(d,h,g);continue;case"html":C+=this.renderer.html(u.text);continue;case"paragraph":C+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":d=u.tokens?this.parseInline(u.tokens):u.text;while(i+1An error occurred:

    "+p(e.message+"",!0)+"
    ";throw e}try{var l=V.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(q.walkTokens(l,t.walkTokens)).then((function(){return $.parse(l,t)}))["catch"](a);q.walkTokens(l,t.walkTokens)}return $.parse(l,t)}catch(c){a(c)}}q.options=q.setOptions=function(e){return N(q.defaults,e),a(q.defaults),q},q.getDefaults=r,q.defaults=e.defaults,q.use=function(){for(var e=arguments.length,t=new Array(e),i=0;iAn error occurred:

    "+p(n.message+"",!0)+"
    ";throw n}},q.Parser=$,q.parser=$.parse,q.Renderer=j,q.TextRenderer=z,q.Lexer=V,q.lexer=V.lex,q.Tokenizer=M,q.Slugger=U,q.parse=q;var K=q.options,G=q.setOptions,Z=q.use,Q=q.walkTokens,Y=q.parseInline,J=q,X=$.parse,ee=V.lex;e.Lexer=V,e.Parser=$,e.Renderer=j,e.Slugger=U,e.TextRenderer=z,e.Tokenizer=M,e.getDefaults=r,e.lexer=ee,e.marked=q,e.options=K,e.parse=J,e.parseInline=Y,e.parser=X,e.setOptions=G,e.use=Z,e.walkTokens=Q,Object.defineProperty(e,"__esModule",{value:!0})}))})();v.Lexer||exports.Lexer,v.Parser||exports.Parser,v.Renderer||exports.Renderer,v.Slugger||exports.Slugger,v.TextRenderer||exports.TextRenderer,v.Tokenizer||exports.Tokenizer,v.getDefaults||exports.getDefaults,v.lexer||exports.lexer;var _=v.marked||exports.marked,b=(v.options||exports.options,v.parse||exports.parse,v.parseInline||exports.parseInline,v.parser||exports.parser,v.setOptions||exports.setOptions,v.use||exports.use,v.walkTokens||exports.walkTokens,i(79247)),y=i(50200),w=i(2179),C=i(21230),S=i(61720),x=i(95896);const k=Object.freeze({image:(e,t,i)=>{let n=[],o=[];return e&&(({href:e,dimensions:n}=(0,h.v1)(e)),o.push(`src="${(0,h.d9)(e)}"`)),i&&o.push(`alt="${(0,h.d9)(i)}"`),t&&o.push(`title="${(0,h.d9)(t)}"`),n.length&&(o=o.concat(n)),""},paragraph:e=>`

    ${e}

    `,link:(e,t,i)=>"string"!==typeof e?"":(e===i&&(i=(0,h.oR)(i)),t="string"===typeof t?(0,h.d9)((0,h.oR)(t)):"",e=(0,h.oR)(e),e=e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),`
    ${i}`)});function L(e,t={},i={}){var o,h;const f=new m.SL;let v=!1;const C=(0,r.az)(t),L=function(t){let i;try{i=(0,b.Qc)(decodeURIComponent(t))}catch(n){}return i?(i=(0,w.rs)(i,(t=>e.uris&&e.uris[t]?x.o.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},T=function(t,i){const n=e.uris&&e.uris[t];let o=x.o.revive(n);return i?t.startsWith(y.lg.data+":")?t:(o||(o=x.o.parse(t)),y.Gi.uriToBrowserUri(o).toString(!0)):o?x.o.parse(t).toString()===o.toString()?t:(o.query&&(o=o.with({query:L(o.query)})),o.toString()):t},I=new _.Renderer;I.image=k.image,I.link=k.link,I.paragraph=k.paragraph;const R=[],A=[];if(t.codeBlockRendererSync?I.code=(e,i)=>{const n=p.a.nextId(),o=t.codeBlockRendererSync(E(i),e);return A.push([n,o]),`
    ${(0,S.YU)(e)}
    `}:t.codeBlockRenderer&&(I.code=(e,i)=>{const n=p.a.nextId(),o=t.codeBlockRenderer(E(i),e);return R.push(o.then((e=>[n,e]))),`
    ${(0,S.YU)(e)}
    `}),t.actionHandler){const i=function(i){let n=i.target;if("A"===n.tagName||(n=n.parentElement,n&&"A"===n.tagName))try{let o=n.dataset["href"];o&&(e.baseUri&&(o=N(x.o.from(e.baseUri),o)),t.actionHandler.callback(o,i))}catch(o){(0,d.dL)(o)}finally{i.preventDefault()}},o=t.actionHandler.disposables.add(new s.Y(C,"click")),r=t.actionHandler.disposables.add(new s.Y(C,"auxclick"));t.actionHandler.disposables.add(u.ju.any(o.event,r.event)((e=>{const t=new l.n(n.Jj(C),e);(t.leftButton||t.middleButton)&&i(t)}))),t.actionHandler.disposables.add(n.nm(C,"keydown",(e=>{const t=new a.y(e);(t.equals(10)||t.equals(3))&&i(t)})))}e.supportHtml||(i.sanitizer=t=>{const i=e.isTrusted?t.match(/^(]+>)|(<\/\s*span>)$/):void 0;return i?t:""},i.sanitize=!0,i.silent=!0),i.renderer=I;let O,P=null!==(o=e.value)&&void 0!==o?o:"";if(P.length>1e5&&(P=`${P.substr(0,1e5)}…`),e.supportThemeIcons&&(P=(0,g.f$)(P)),t.fillInIncompleteTokens){const e={..._.defaults,...i},t=_.lexer(P,e),n=H(t);O=_.parser(n,e)}else O=_.parse(P,i);if(e.supportThemeIcons){const e=(0,c.T)(O);O=e.map((e=>"string"===typeof e?e:e.outerHTML)).join("")}const M=new DOMParser,F=M.parseFromString(D(e,O),"text/html");if(F.body.querySelectorAll("img").forEach((t=>{const i=t.getAttribute("src");if(i){let o=i;try{e.baseUri&&(o=N(x.o.from(e.baseUri),o))}catch(n){}t.src=T(o,!0)}})),F.body.querySelectorAll("a").forEach((t=>{const i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let n=T(i,!1);e.baseUri&&(n=N(x.o.from(e.baseUri),i)),t.dataset.href=n}})),C.innerHTML=D(e,F.body.innerHTML),R.length>0)Promise.all(R).then((e=>{var i,o;if(v)return;const s=new Map(e),r=C.querySelectorAll("div[data-code]");for(const t of r){const e=s.get(null!==(i=t.dataset["code"])&&void 0!==i?i:"");e&&n.mc(t,e)}null===(o=t.asyncRenderCallback)||void 0===o||o.call(t)}));else if(A.length>0){const e=new Map(A),t=C.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(null!==(h=i.dataset["code"])&&void 0!==h?h:"");t&&n.mc(i,t)}}if(t.asyncRenderCallback)for(const s of C.getElementsByTagName("img")){const e=f.add(n.nm(s,"load",(()=>{e.dispose(),t.asyncRenderCallback()})))}return{element:C,dispose:()=>{v=!0,f.dispose()}}}function E(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function N(e,t){const i=/^\w[\w\d+.-]*:/.test(t);return i?t:e.path.endsWith("/")?(0,C.i3)(e,t).toString():(0,C.i3)((0,C.XX)(e),t).toString()}function D(e,t){const{config:i,allowedSchemes:s}=I(e);o.v5("uponSanitizeAttribute",((e,t)=>{var i;if("style"!==t.attrName&&"class"!==t.attrName){if("INPUT"===e.tagName&&"checkbox"===(null===(i=e.attributes.getNamedItem("type"))||void 0===i?void 0:i.value)){if("type"===t.attrName&&"checkbox"===t.attrValue||"disabled"===t.attrName||"checked"===t.attrName)return void(t.keepAttr=!0);t.keepAttr=!1}}else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}})),o.v5("uponSanitizeElement",((e,t)=>{var i,n;"input"===t.tagName&&("checkbox"===(null===(i=e.attributes.getNamedItem("type"))||void 0===i?void 0:i.value)?e.setAttribute("disabled",""):null===(n=e.parentElement)||void 0===n||n.removeChild(e))}));const r=n._F(s);try{return o.Nw(t,{...i,RETURN_TRUSTED_TYPE:!0})}finally{o.ok("uponSanitizeAttribute"),r.dispose()}}const T=["align","autoplay","alt","checked","class","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","src","style","target","title","type","width","start"];function I(e){const t=[y.lg.http,y.lg.https,y.lg.mailto,y.lg.data,y.lg.file,y.lg.vscodeFileResource,y.lg.vscodeRemote,y.lg.vscodeRemoteResource];return e.isTrusted&&t.push(y.lg.command),{config:{ALLOWED_TAGS:[...n.sQ],ALLOWED_ATTR:T,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}function R(e){return"string"===typeof e?e:A(e)}function A(e){var t;let i=null!==(t=e.value)&&void 0!==t?t:"";i.length>1e5&&(i=`${i.substr(0,1e5)}…`);const n=_.parse(i,{renderer:P.value}).replace(/&(#\d+|[a-zA-Z]+);/g,(e=>{var t;return null!==(t=O.get(e))&&void 0!==t?t:e}));return D({isTrusted:!1},n).toString()}const O=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]),P=new f.o((()=>{const e=new _.Renderer;return e.code=e=>e,e.blockquote=e=>e,e.html=e=>"",e.heading=(e,t,i)=>e+"\n",e.hr=()=>"",e.list=(e,t)=>e,e.listitem=e=>e+"\n",e.paragraph=e=>e+"\n",e.table=(e,t)=>e+t+"\n",e.tablerow=e=>e,e.tablecell=(e,t)=>e+" ",e.strong=e=>e,e.em=e=>e,e.codespan=e=>e,e.br=()=>"\n",e.del=e=>e,e.image=(e,t,i)=>"",e.text=e=>e,e.link=(e,t,i)=>i,e}));function M(e){let t="";return e.forEach((e=>{t+=e.raw})),t}function F(e){var t,i;for(let n=0;nB(e.raw))))return q(e)}}}function B(e){return!!e.match(/^[^\[]*\]\([^\)]*$/)}function H(e){let t,i;for(t=0;t0){const e=o?i.slice(0,-1).join("\n"):t,s=!!e.match(/\|\s*$/),r=e+(s?"":"|")+`\n|${" --- |".repeat(n)}`;return _.lexer(r)}}},75467:(e,t,i)=>{"use strict";i.d(t,{n:()=>l,q:()=>c});var n=i(90882);const o=new WeakMap;function s(e){if(!e.parent||e.parent===e)return null;try{const t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null}catch(t){return null}return e.parent}class r{static getSameOriginWindowChain(e){let t=o.get(e);if(!t){t=[],o.set(e,t);let i,n=e;do{i=s(n),i?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=i}while(n)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){var i,n;if(!t||e===t)return{top:0,left:0};let o=0,s=0;const r=this.getSameOriginWindowChain(e);for(const a of r){const e=a.window.deref();if(o+=null!==(i=null===e||void 0===e?void 0:e.scrollY)&&void 0!==i?i:0,s+=null!==(n=null===e||void 0===e?void 0:e.scrollX)&&void 0!==n?n:0,e===t)break;if(!a.iframeElement)break;const r=a.iframeElement.getBoundingClientRect();o+=r.top,s+=r.left}return{top:o,left:s}}}var a=i(47606);class l{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,"number"===typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=r.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class c{constructor(e,t=0,i=0){var o;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let s=!1;if(n.i7){const e=navigator.userAgent.match(/Chrome\/(\d+)/),t=e?parseInt(e[1]):123;s=t<=122}if(e){const t=e,i=e,r=(null===(o=e.view)||void 0===o?void 0:o.devicePixelRatio)||1;if("undefined"!==typeof t.wheelDeltaY)this.deltaY=s?t.wheelDeltaY/(120*r):t.wheelDeltaY/120;else if("undefined"!==typeof i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.vU&&!a.dz?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof t.wheelDeltaX)n.G6&&a.ED?this.deltaX=-t.wheelDeltaX/120:this.deltaX=s?t.wheelDeltaX/(120*r):t.wheelDeltaX/120;else if("undefined"!==typeof i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.vU&&!a.dz?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=s?e.wheelDelta/(120*r):e.wheelDelta/120)}}preventDefault(){var e;null===(e=this.browserEvent)||void 0===e||e.preventDefault()}stopPropagation(){var e;null===(e=this.browserEvent)||void 0===e||e.stopPropagation()}}},53007:(e,t,i)=>{"use strict";var n;i.d(t,{B:()=>n}),function(e){const t={total:0,min:Number.MAX_VALUE,max:0},i={...t},n={...t},o={...t};let s=0;const r={keydown:0,input:0,render:0};function a(){v(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),r.keydown=1,queueMicrotask(l)}function l(){1===r.keydown&&(performance.mark("keydown/end"),r.keydown=2)}function c(){performance.mark("input/start"),r.input=1,m()}function d(){0===r.input&&c(),queueMicrotask(u)}function u(){1===r.input&&(performance.mark("input/end"),r.input=2)}function h(){v()}function g(){v()}function p(){2===r.keydown&&2===r.input&&0===r.render&&(performance.mark("render/start"),r.render=1,queueMicrotask(f),m())}function f(){1===r.render&&(performance.mark("render/end"),r.render=2)}function m(){setTimeout(v)}function v(){2===r.keydown&&2===r.input&&2===r.render&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),_("keydown",t),_("input",i),_("render",n),_("inputlatency",o),s++,b())}function _(e,t){const i=performance.getEntriesByName(e)[0].duration;t.total+=i,t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}function b(){performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),r.keydown=0,r.input=0,r.render=0}function y(){if(0===s)return;const e={keydown:w(t),input:w(i),render:w(n),total:w(o),sampleCount:s};return C(t),C(i),C(n),C(o),s=0,e}function w(e){return{average:e.total/s,max:e.max,min:e.min}}function C(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0}e.onKeyDown=a,e.onBeforeInput=c,e.onInput=d,e.onKeyUp=h,e.onSelectionChange=g,e.onRenderStart=p,e.getAndClearMeasurements=y}(n||(n={}))},80213:(e,t,i)=>{"use strict";i.d(t,{T:()=>c});var n=i(2548),o=i(11271),s=i(70959);class r extends s.JT{constructor(e){super(),this._onDidChange=this._register(new o.Q5),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){var i;null===(i=this._mediaQueryList)||void 0===i||i.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class a extends s.JT{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new o.Q5),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new r(e));this._register(t.onDidChange((()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)})))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d"),i=e.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return i/n}}class l{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=(0,n.ZY)(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,s.dk)(new a(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,s.dk)(o.ju.once(n.ey)((({vscodeWindowId:e})=>{e===t&&(null===i||void 0===i||i.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}const c=new l},1212:(e,t,i)=>{"use strict";i.d(t,{o:()=>h,t:()=>n});var n,o=i(2548),s=i(36606),r=i(21921),a=i(58718),l=i(11271),c=i(70959),d=i(33010),u=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};(function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"})(n||(n={}));class h extends c.JT{constructor(){super(),this.dispatched=!1,this.targets=new d.S,this.ignoreTargets=new d.S,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(l.ju.runAndSubscribe(o.Xo,(({window:e,disposables:t})=>{t.add(o.nm(e.document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),t.add(o.nm(e.document,"touchend",(t=>this.onTouchEnd(e,t)))),t.add(o.nm(e.document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}),{window:s.Ex,disposables:this._store}))}static addTarget(e){if(!h.isTouchDevice())return c.JT.None;h.INSTANCE||(h.INSTANCE=(0,c.dk)(new h));const t=h.INSTANCE.targets.push(e);return(0,c.OF)(t)}static ignoreTarget(e){if(!h.isTouchDevice())return c.JT.None;h.INSTANCE||(h.INSTANCE=(0,c.dk)(new h));const t=h.INSTANCE.ignoreTargets.push(e);return(0,c.OF)(t)}static isTouchDevice(){return"ontouchstart"in s.Ex||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,o=e.targetTouches.length;i=h.HOLD_DELAY&&Math.abs(l.initialPageX-r.Gb(l.rollingPageX))<30&&Math.abs(l.initialPageY-r.Gb(l.rollingPageY))<30){const e=this.newGestureEvent(n.Contextmenu,l.initialTarget);e.pageX=r.Gb(l.rollingPageX),e.pageY=r.Gb(l.rollingPageY),this.dispatchEvent(e)}else if(1===o){const t=r.Gb(l.rollingPageX),n=r.Gb(l.rollingPageY),o=r.Gb(l.rollingTimestamps)-l.rollingTimestamps[0],s=t-l.rollingPageX[0],a=n-l.rollingPageY[0],c=[...this.targets].filter((e=>l.initialTarget instanceof Node&&e.contains(l.initialTarget)));this.inertia(e,c,i,Math.abs(s)/o,s>0?1:-1,t,Math.abs(a)/o,a>0?1:-1,n)}this.dispatchEvent(this.newGestureEvent(n.End,l.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===n.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>h.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==n.Change&&e.type!==n.Contextmenu||(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const t of this.ignoreTargets)if(t.contains(e.initialTarget))return;for(const t of this.targets)t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)}}inertia(e,t,i,s,r,a,l,c,d){this.handle=o.jL(e,(()=>{const o=Date.now(),u=o-i;let g=0,p=0,f=!0;s+=h.SCROLL_FRICTION*u,l+=h.SCROLL_FRICTION*u,s>0&&(f=!1,g=r*s*u),l>0&&(f=!1,p=c*l*u);const m=this.newGestureEvent(n.Change);m.translationX=g,m.translationY=p,t.forEach((e=>e.dispatchEvent(m))),f||this.inertia(e,t,o,s,r,a+g,l,c,d+p)}))}onTouchMove(e){const t=Date.now();for(let i=0,o=e.changedTouches.length;i3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(o.pageX),s.rollingPageY.push(o.pageY),s.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}h.SCROLL_FRICTION=-.005,h.HOLD_DELAY=700,h.CLEAR_TAP_COUNT_TIME=400,u([a.H],h,"isTouchDevice",null)},82168:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(36606),o=i(98642);function s(e,t){var i;const s=globalThis.MonacoEnvironment;if(null===s||void 0===s?void 0:s.createTrustedTypesPolicy)try{return s.createTrustedTypesPolicy(e,t)}catch(r){return void(0,o.dL)(r)}try{return null===(i=n.Ex.trustedTypes)||void 0===i?void 0:i.createPolicy(e,t)}catch(r){return void(0,o.dL)(r)}}},94873:(e,t,i)=>{"use strict";i.d(t,{gU:()=>D,YH:()=>N,Lc:()=>T});var n=i(90882),o=i(1483),s=i(2548),r=i(1212),a=i(11030),l=i(6674),c=i(9172),d=i(45429),u=i(98162),h=i(51442),g=i(21921),p=i(11271),f=i(56082),m=i(70959),v=i(47606),_=i(25206);const b=s.$,y="selectOption.entry.template";class w{get templateId(){return y}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=s.R3(e,b(".option-text")),t.detail=s.R3(e,b(".option-detail")),t.decoratorRight=s.R3(e,b(".option-decorator-right")),t}renderElement(e,t,i){const n=i,o=e.text,s=e.detail,r=e.decoratorRight,a=e.isDisabled;n.text.textContent=o,n.detail.textContent=s||"",n.decoratorRight.innerText=r||"",a?n.root.classList.add("option-disabled"):n.root.classList.remove("option-disabled")}disposeTemplate(e){}}class C extends m.JT{constructor(e,t,i,n,o){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=n,this.selectBoxOptions=o||Object.create(null),"number"!==typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=C.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._hover=this._register((0,l.g)((0,a.t)("mouse"),this.selectElement,"")),this._onDidSelect=new p.Q5,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}getHeight(){return 22}getTemplateId(){return y}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=s.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=s.R3(this.selectDropDownContainer,b(".select-box-details-pane"));const t=s.R3(this.selectDropDownContainer,b(".select-box-dropdown-container-width-control")),i=s.R3(t,b(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",s.R3(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=s.dS(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(s.nm(this.selectDropDownContainer,s.tw.DRAG_START,(e=>{s.zB.stop(e,!0)})))}registerListeners(){let e;this._register(s.mu(this.selectElement,"change",(e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this._hover.update(this.options[this.selected].text)}))),this._register(s.nm(this.selectElement,s.tw.CLICK,(e=>{s.zB.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(s.nm(this.selectElement,s.tw.MOUSE_DOWN,(e=>{s.zB.stop(e)}))),this._register(s.nm(this.selectElement,"touchstart",(t=>{e=this._isVisible}))),this._register(s.nm(this.selectElement,"touchend",(t=>{s.zB.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(s.nm(this.selectElement,s.tw.KEY_DOWN,(e=>{const t=new d.y(e);let i=!1;v.dz?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),s.zB.stop(e,!0))})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){g.fS(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"===typeof e.description&&(this._hasDetails=!0)}))),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){var e;null===(e=this.selectList)||void 0===e||e.splice(0,this.selectList.length,this.options)}select(e){e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this._hover.update(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){var e,t,i;const n=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",o=null!==(t=this.styles.selectForeground)&&void 0!==t?t:"",s=null!==(i=this.styles.selectBorder)&&void 0!==i?i:"";this.selectElement.style.backgroundColor=n,this.selectElement.style.color=o,this.selectElement.style.borderColor=s}styleList(){var e,t;const i=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",n=s.XT(this.styles.selectListBackground,i);this.selectDropDownListContainer.style.backgroundColor=n,this.selectionDetailsPane.style.backgroundColor=n;const o=null!==(t=this.styles.focusBorder)&&void 0!==t?t:"";this.selectDropDownContainer.style.outlineColor=o,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{try{e.removeChild(this.selectDropDownContainer)}catch(t){}}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach(((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)})),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=s.Jj(this.selectElement),i=s.i(this.selectElement),n=s.Jj(this.selectElement).getComputedStyle(this.selectElement),o=parseFloat(n.getPropertyValue("--dropdown-padding-top"))+parseFloat(n.getPropertyValue("--dropdown-padding-bottom")),r=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-C.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,l=this.selectElement.offsetWidth,c=this.setWidthControlElement(this.widthControlElement),d=Math.max(c,Math.round(l)).toString()+"px";this.selectDropDownContainer.style.width=d,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let u=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const h=this._hasDetails?this._cachedMaxDetailsHeight:0,g=u+o+h,p=Math.floor((r-o-h)/this.getHeight()),f=Math.floor((a-o-h)/this.getHeight());if(e)return!(i.top+i.height>t.innerHeight-22||i.topp&&this.options.length>p?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(i.top+i.height>t.innerHeight-22||i.topr&&(u=p*this.getHeight())}else g>a&&(u=f*this.getHeight());return this.selectList.layout(u),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=u+o+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=u+o+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=d,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,n=0;this.options.forEach(((e,t)=>{const o=e.detail?e.detail.length:0,s=e.decoratorRight?e.decoratorRight.length:0,r=e.text.length+o+s;r>n&&(i=t,n=r)})),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=s.w(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=s.R3(e,b(".select-box-dropdown-list-container")),this.listRenderer=new w,this.selectList=new h.aV("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>(0,_.NC)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>v.dz?"":"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new c.Y(this.selectDropDownListContainer,"keydown")),i=p.ju.chain(t.event,(e=>e.filter((()=>this.selectList.length>0)).map((e=>new d.y(e)))));this._register(p.ju.chain(i,(e=>e.filter((e=>3===e.keyCode))))(this.onEnter,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>2===e.keyCode))))(this.onEnter,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>9===e.keyCode))))(this.onEscape,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>16===e.keyCode))))(this.onUpArrow,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>18===e.keyCode))))(this.onDownArrow,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>12===e.keyCode))))(this.onPageDown,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>11===e.keyCode))))(this.onPageUp,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>14===e.keyCode))))(this.onHome,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>13===e.keyCode))))(this.onEnd,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113))))(this.onCharacter,this)),this._register(s.nm(this.selectList.getHTMLElement(),s.tw.POINTER_UP,(e=>this.onPointerUp(e)))),this._register(this.selectList.onMouseOver((e=>"undefined"!==typeof e.index&&this.selectList.setFocus([e.index])))),this._register(this.selectList.onDidChangeFocus((e=>this.onListFocus(e)))),this._register(s.nm(this.selectDropDownContainer,s.tw.FOCUS_OUT,(e=>{this._isVisible&&!s.jg(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()}))),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;s.zB.stop(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const n=Number(i.getAttribute("data-index")),o=i.classList.contains("option-disabled");n>=0&&n{for(let t=0;tthis.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){if(this.selected>0){s.zB.stop(e,!0);const t=this.options[this.selected-1].isDisabled;t&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onPageUp(e){s.zB.stop(e),this.selectList.focusPreviousPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onHome(e){s.zB.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){s.zB.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=f.kL.toString(e.keyCode);let i=-1;for(let n=0;n{this._register(s.nm(this.selectElement,e,(e=>{this.selectElement.focus()})))})),this._register(s.mu(this.selectElement,"click",(e=>{s.zB.stop(e,!0)}))),this._register(s.mu(this.selectElement,"change",(e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})}))),this._register(s.mu(this.selectElement,"keydown",(e=>{let t=!1;v.dz?18!==e.keyCode&&16!==e.keyCode&&10!==e.keyCode||(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&g.fS(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled))}))),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new L.Wi)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(r.o.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,n.vU&&this._register((0,s.nm)(e,s.tw.DRAG_START,(e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(o.g.TEXT,this._action.label)})))),this._register((0,s.nm)(t,r.t.Tap,(e=>this.onClick(e,!0)))),this._register((0,s.nm)(t,s.tw.MOUSE_DOWN,(e=>{i||s.zB.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),v.dz&&this._register((0,s.nm)(t,s.tw.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,s.nm)(t,s.tw.CLICK,(e=>{s.zB.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,s.nm)(t,s.tw.DBLCLICK,(e=>{s.zB.stop(e,!0)}))),[s.tw.MOUSE_UP,s.tw.MOUSE_OUT].forEach((e=>{this._register((0,s.nm)(t,e,(e=>{s.zB.stop(e),t.classList.remove("active")})))}))}onClick(e,t=!1){var i;s.zB.stop(e,!0);const n=E.Jp(this._context)?(null===(i=this.options)||void 0===i?void 0:i.useEventAsContext)?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){var e,t,i;if(!this.element)return;const n=null!==(e=this.getTooltip())&&void 0!==e?e:"";if(this.updateAriaLabel(),null===(t=this.options.hoverDelegate)||void 0===t?void 0:t.showNativeHover)this.element.title=n;else if(this.customHover)this.customHover.update(n);else{const e=null!==(i=this.options.hoverDelegate)&&void 0!==i?i:(0,a.t)("element");this.customHover=(0,l.g)(e,this.element,n),this._store.add(this.customHover)}}updateAriaLabel(){var e;if(this.element){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.element.setAttribute("aria-label",t)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class D extends N{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),E.p_(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const e=document.createElement("span");e.classList.add("keybinding"),e.textContent=this.options.keybinding,this.element.appendChild(e)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===L.Z0.ID?"presentation":this.options.isMenu?"menuitem":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=_.NC({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),null!==e&&void 0!==e?e:void 0}updateClass(){var e;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):null===(e=this.label)||void 0===e||e.classList.remove("codicon")}updateEnabled(){var e,t;this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),null===(e=this.element)||void 0===e||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),null===(t=this.element)||void 0===t||t.classList.add("disabled"))}updateAriaLabel(){var e;if(this.label){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.label.setAttribute("aria-label",t)}}updateChecked(){this.label&&(void 0!==this.action.checked?(this.label.classList.toggle("checked",this.action.checked),this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox")):(this.label.classList.remove("checked"),this.label.removeAttribute("aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class T extends N{constructor(e,t,i,n,o,s,r){super(e,t),this.selectBox=new k(i,n,o,s,r),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect((e=>this.runAction(e.selected,e.index))))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){var e;null===(e=this.selectBox)||void 0===e||e.focus()}blur(){var e;null===(e=this.selectBox)||void 0===e||e.blur()}render(e){this.selectBox.render(e)}}},78089:(e,t,i)=>{"use strict";i.d(t,{o:()=>u});var n=i(2548),o=i(45429),s=i(94873),r=i(11030),a=i(10205),l=i(11271),c=i(70959),d=i(55455);class u extends c.JT{constructor(e,t={}){var i,d,u,h,g,p,f;let m,v;switch(super(),this._actionRunnerDisposables=this._register(new c.SL),this.viewItemDisposables=this._register(new c.b2),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new l.Q5),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new l.Q5({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new l.Q5),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new l.Q5),this.onWillRun=this._onWillRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(d=this.options.orientation)&&void 0!==d?d:0,this._triggerKeys={keyDown:null!==(h=null===(u=this.options.triggerKeys)||void 0===u?void 0:u.keyDown)&&void 0!==h&&h,keys:null!==(p=null===(g=this.options.triggerKeys)||void 0===g?void 0:g.keys)&&void 0!==p?p:[3,10]},this._hoverDelegate=null!==(f=t.hoverDelegate)&&void 0!==f?f:this._register((0,r.t)("element",!0)),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new a.Wi,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",this._orientation){case 0:m=[15],v=[17];break;case 1:m=[16],v=[18],this.domNode.className+=" vertical";break}this._register(n.nm(this.domNode,n.tw.KEY_DOWN,(e=>{const t=new o.y(e);let i=!0;const n="number"===typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;m&&(t.equals(m[0])||t.equals(m[1]))?i=this.focusPrevious():v&&(t.equals(v[0])||t.equals(v[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?i=this.focusFirst():t.equals(13)?i=this.focusLast():t.equals(2)&&n instanceof s.YH&&n.trapsArrowNavigation?i=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:i=!1,i&&(t.preventDefault(),t.stopPropagation())}))),this._register(n.nm(this.domNode,n.tw.KEY_UP,(e=>{const t=new o.y(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026)||t.equals(16)||t.equals(18)||t.equals(15)||t.equals(17))&&this.updateFocusedItem()}))),this.focusTracker=this._register(n.go(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{n.vY()!==this.domNode&&n.jg(n.vY(),this.domNode)||(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const e=this.viewItems.find((e=>e instanceof s.YH&&e.isEnabled()));e instanceof s.YH&&e.setFocusable(!0)}else this.viewItems.forEach((e=>{e instanceof s.YH&&e.setFocusable(!1)}))}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){var e,t;for(let i=0;it.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems.forEach((t=>t.actionRunner=e))}getContainer(){return this.domNode}getAction(e){var t;if("number"===typeof e)return null===(t=this.viewItems[e])||void 0===t?void 0:t.action;if(e instanceof HTMLElement){while(e.parentElement!==this.actionsList){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t{const i=document.createElement("li");let r;i.className="action-item",i.setAttribute("role","presentation");const a={hoverDelegate:this._hoverDelegate,...t};this.options.actionViewItemProvider&&(r=this.options.actionViewItemProvider(e,a)),r||(r=new s.gU(this.context,e,a)),this.options.allowContextMenu||this.viewItemDisposables.set(r,n.nm(i,n.tw.CONTEXT_MENU,(e=>{n.zB.stop(e,!0)}))),r.actionRunner=this._actionRunner,r.setActionContext(this.context),r.render(i),this.focusable&&r instanceof s.YH&&0===this.viewItems.length&&r.setFocusable(!0),null===o||o<0||o>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(r)):(this.actionsList.insertBefore(i,this.actionsList.children[o]),this.viewItems.splice(o,0,r),o++)})),"number"===typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=(0,c.B9)(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),n.PO(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"===typeof e?t=e:"boolean"===typeof e&&(i=e),i&&"undefined"===typeof this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){if("undefined"===typeof this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.Z0.ID));return this.updateFocus(),!0}focusPrevious(e){if("undefined"===typeof this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.Z0.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n,o;"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&(null===(n=this.viewItems[this.previouslyFocusedItem])||void 0===n||n.blur());const s=void 0!==this.focusedItem?this.viewItems[this.focusedItem]:void 0;if(s){let n=!0;d.mf(s.focus)||(n=!1),this.options.focusOnlyEnabledItems&&d.mf(s.isEnabled)&&!s.isEnabled()&&(n=!1),s.action.id===a.Z0.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(s.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),n&&(null===(o=s.showHover)||void 0===o||o.call(s))}}doTrigger(e){if("undefined"===typeof this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof s.YH){const i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=(0,c.B9)(this.viewItems),this.getContainer().remove(),super.dispose()}}},69332:(e,t,i)=>{"use strict";i.d(t,{Z9:()=>u,i7:()=>h,wW:()=>d});var n=i(2548);const o=2e4;let s,r,a,l,c;function d(e){s=document.createElement("div"),s.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};r=t(),a=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};l=i(),c=i(),e.appendChild(s)}function u(e){s&&(r.textContent!==e?(n.PO(a),g(r,e)):(n.PO(r),g(a,e)))}function h(e){s&&(l.textContent!==e?(n.PO(c),g(l,e)):(n.PO(l),g(c,e)))}function g(e,t){n.PO(e),t.length>o&&(t=t.substr(0,o)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},24511:(e,t,i)=>{"use strict";i.d(t,{z:()=>m});var n=i(2548),o=i(29739),s=i(45429),r=i(98162),a=i(1212),l=i(11030),c=i(6674),d=i(66426),u=i(60204),h=i(11271),g=i(81478),p=i(70959),f=i(99588);u.Il.white.toString(),u.Il.white.toString();class m extends p.JT{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new h.Q5),this._onDidEscape=this._register(new h.Q5),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,o=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=o||"",this._element.style.backgroundColor=i||"",t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),"string"===typeof t.ariaLabel&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this._register(a.o.addTarget(this._element)),[n.tw.CLICK,a.t.Tap].forEach((e=>{this._register((0,n.nm)(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):n.zB.stop(e)})))})),this._register((0,n.nm)(this._element,n.tw.KEY_DOWN,(e=>{const t=new s.y(e);let i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._onDidEscape.fire(e),this._element.blur(),i=!0),i&&n.zB.stop(t,!0)}))),this._register((0,n.nm)(this._element,n.tw.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.updateBackground(!0)}))),this._register((0,n.nm)(this._element,n.tw.MOUSE_OUT,(e=>{this.updateBackground(!1)}))),this.focusTracker=this._register((0,n.go)(this._element)),this._register(this.focusTracker.onDidFocus((()=>{this.enabled&&this.updateBackground(!0)}))),this._register(this.focusTracker.onDidBlur((()=>{this.enabled&&this.updateBackground(!1)})))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){const t=[];for(let i of(0,d.T)(e))if("string"===typeof i){if(i=i.trim(),""===i)continue;const e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateBackground(e){let t;t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){var t;if(this._label===e)return;if((0,g.Fr)(this._label)&&(0,g.Fr)(e)&&(0,g.g_)(this._label,e))return;this._element.classList.add("monaco-text-button");const i=this.options.supportShortLabel?this._labelElement:this._element;if((0,g.Fr)(e)){const s=(0,r.ap)(e,{inline:!0});s.dispose();const a=null===(t=s.element.querySelector("p"))||void 0===t?void 0:t.innerHTML;if(a){const e=(0,o.Nw)(a,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});i.innerHTML=e}else(0,n.mc)(i)}else this.options.supportIcons?(0,n.mc)(i,...this.getContentElements(e)):i.textContent=e;let s="";"string"===typeof this.options.title?s=this.options.title:this.options.title&&(s=(0,r.et)(e)),this._hover?this._hover.update(s):this._hover=this._register((0,c.g)((0,l.t)("mouse"),this._element,s)),"string"===typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",this._element.title),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...f.k.asClassNameArray(e))}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}},86829:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(2548),o=i(61720);class s{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=(0,n.R3)(e,(0,n.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){var e,t;this.element.textContent=(0,o.WU)(this.countFormat,this.count),this.element.title=(0,o.WU)(this.titleFormat,this.count),this.element.style.backgroundColor=null!==(e=this.styles.badgeBackground)&&void 0!==e?e:"",this.element.style.color=null!==(t=this.styles.badgeForeground)&&void 0!==t?t:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},29031:(e,t,i)=>{"use strict";i.d(t,{C:()=>g});var n=i(2548),o=i(94873),s=i(45429),r=i(1212),a=i(10205),l=i(11271);class c extends a.Wi{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new l.Q5),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,n.R3)(e,(0,n.$)(".monaco-dropdown")),this._label=(0,n.R3)(this._element,(0,n.$)(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const s of[n.tw.CLICK,n.tw.MOUSE_DOWN,r.t.Tap])this._register((0,n.nm)(this.element,s,(e=>n.zB.stop(e,!0))));for(const s of[n.tw.MOUSE_DOWN,r.t.Tap])this._register((0,n.nm)(this._label,s,(e=>{(0,n.N5)(e)&&(e.detail>1||0!==e.button)||(this.visible?this.hide():this.show())})));this._register((0,n.nm)(this._label,n.tw.KEY_UP,(e=>{const t=new s.y(e);(t.equals(3)||t.equals(10))&&(n.zB.stop(e,!0),this.visible?this.hide():this.show())})));const o=i(this._label);o&&this._register(o),this._register(r.o.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class d extends c{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}var u=i(6674),h=i(11030);class g extends o.YH{constructor(e,t,i,n=Object.create(null)){super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new l.Q5),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=e=>{this.element=(0,n.R3)(e,(0,n.$)("a.action-label"));let t=[];return"string"===typeof this.options.classNames?t=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(t=this.options.classNames),t.find((e=>"icon"===e))||t.push("codicon"),this.element.classList.add(...t),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register((0,u.g)((0,h.t)("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},i=Array.isArray(this.menuActionsOrProvider),o={contextMenuProvider:this.contextMenuProvider,labelRenderer:t,menuAsChild:this.options.menuAsChild,actions:i?this.menuActionsOrProvider:void 0,actionProvider:i?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new d(e,o)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{var t;null===(t=this.element)||void 0===t||t.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return e.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),null!==e&&void 0!==e?e:void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){var e;null===(e=this.dropdownMenu)||void 0===e||e.show()}updateEnabled(){var e,t;const i=!this.action.enabled;null===(e=this.actionItem)||void 0===e||e.classList.toggle("disabled",i),null===(t=this.element)||void 0===t||t.classList.toggle("disabled",i)}}},93575:(e,t,i)=>{"use strict";i.d(t,{V:()=>u});var n=i(2548),o=i(21691),s=i(60748),r=i(9194),a=i(11271),l=i(25206),c=i(70959);const d=l.NC("defaultLabel","input");class u extends r.${constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new c.XK),this.additionalToggles=[],this._onDidOptionChange=this._register(new a.Q5),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new a.Q5),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new a.Q5),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new a.Q5),this._onKeyUp=this._register(new a.Q5),this._onCaseSensitiveKeyDown=this._register(new a.Q5),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new a.Q5),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||d,this.showCommonFindToggles=!!i.showCommonFindToggles;const r=i.appendCaseSensitiveLabel||"",l=i.appendWholeWordsLabel||"",u=i.appendRegexLabel||"",h=i.history||[],g=!!i.flexibleHeight,p=!!i.flexibleWidth,f=i.flexibleMaxHeight;if(this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new s.pG(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:h,showHistoryHint:i.showHistoryHint,flexibleHeight:g,flexibleWidth:p,flexibleMaxHeight:f,inputBoxStyles:i.inputBoxStyles})),this.showCommonFindToggles){this.regex=this._register(new o.eH({appendTitle:u,isChecked:!1,...i.toggleStyles})),this._register(this.regex.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.regex.onKeyDown((e=>{this._onRegexKeyDown.fire(e)}))),this.wholeWords=this._register(new o.Qx({appendTitle:l,isChecked:!1,...i.toggleStyles})),this._register(this.wholeWords.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this.caseSensitive=this._register(new o.rk({appendTitle:r,isChecked:!1,...i.toggleStyles})),this._register(this.caseSensitive.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.caseSensitive.onKeyDown((e=>{this._onCaseSensitiveKeyDown.fire(e)})));const e=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,(t=>{if(t.equals(15)||t.equals(17)||t.equals(9)){const i=e.indexOf(this.domNode.ownerDocument.activeElement);if(i>=0){let o=-1;t.equals(17)?o=(i+1)%e.length:t.equals(15)&&(o=0===i?e.length-1:i-1),t.equals(9)?(e[i].blur(),this.inputBox.focus()):o>=0&&e[o].focus(),n.zB.stop(t,!0)}}}))}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(null===i||void 0===i?void 0:i.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),null===e||void 0===e||e.appendChild(this.domNode),this._register(n.nm(this.inputBox.inputElement,"compositionstart",(e=>{this.imeSessionInProgress=!0}))),this._register(n.nm(this.inputBox.inputElement,"compositionend",(e=>{this.imeSessionInProgress=!1,this._onInput.fire()}))),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){var e,t,i;this.domNode.classList.remove("disabled"),this.inputBox.enable(),null===(e=this.regex)||void 0===e||e.enable(),null===(t=this.wholeWords)||void 0===t||t.enable(),null===(i=this.caseSensitive)||void 0===i||i.enable();for(const n of this.additionalToggles)n.enable()}disable(){var e,t,i;this.domNode.classList.add("disabled"),this.inputBox.disable(),null===(e=this.regex)||void 0===e||e.disable(),null===(t=this.wholeWords)||void 0===t||t.disable(),null===(i=this.caseSensitive)||void 0===i||i.disable();for(const n of this.additionalToggles)n.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const t of this.additionalToggles)t.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new c.SL;for(const t of null!==e&&void 0!==e?e:[])this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()}))),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(e=!1){var t,i,n,o,s,r;this.inputBox.paddingRight=e?0:(null!==(i=null===(t=this.caseSensitive)||void 0===t?void 0:t.width())&&void 0!==i?i:0)+(null!==(o=null===(n=this.wholeWords)||void 0===n?void 0:n.width())&&void 0!==o?o:0)+(null!==(r=null===(s=this.regex)||void 0===s?void 0:s.width())&&void 0!==r?r:0)+this.additionalToggles.reduce(((e,t)=>e+t.width()),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){var e,t;return null!==(t=null===(e=this.caseSensitive)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){var e,t;return null!==(t=null===(e=this.wholeWords)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){var e,t;return null!==(t=null===(e=this.regex)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){var e;null===(e=this.caseSensitive)||void 0===e||e.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}},21691:(e,t,i)=>{"use strict";i.d(t,{Qx:()=>d,eH:()=>u,rk:()=>c});var n=i(5506),o=i(8419),s=i(25206);const r=s.NC("caseDescription","Match Case"),a=s.NC("wordsDescription","Match Whole Word"),l=s.NC("regexDescription","Use Regular Expression");class c extends n.Z{constructor(e){super({icon:o.l.caseSensitive,title:r+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class d extends n.Z{constructor(e){super({icon:o.l.wholeWord,title:a+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class u extends n.Z{constructor(e){super({icon:o.l.regex,title:l+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}},32907:(e,t,i)=>{"use strict";i.d(t,{q:()=>r});var n=i(2548),o=i(66426),s=i(2179);class r{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=null!==(i=null===t||void 0===t?void 0:t.supportIcons)&&void 0!==i&&i,this.domNode=n.R3(e,n.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=r.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&s.fS(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t{n="\r\n"===e?-1:0,o+=i;for(const i of t)i.end<=o||(i.start>=o&&(i.start+=n),i.end>=o&&(i.end+=n));return i+=n,"⏎"}))}}},11030:(e,t,i)=>{"use strict";i.d(t,{r:()=>l,t:()=>c});var n=i(21815);const o=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});let s=o;const r=new n.o((()=>s("mouse",!1))),a=new n.o((()=>s("element",!1)));function l(e){s=e}function c(e,t){return t?s(e,!0):"element"===e?a.value:r.value}},90422:(e,t,i)=>{"use strict";i.d(t,{Sr:()=>d,c8:()=>c,uX:()=>u});var n=i(2548),o=i(45429),s=i(60841),r=i(70959),a=i(25206);const l=n.$;class c extends r.JT{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new s.s$(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class d extends r.JT{static render(e,t,i){return new d(e,t,i)}constructor(e,t,i){super(),this.actionContainer=n.R3(e,l("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=n.R3(this.actionContainer,l("a.action")),this.action.setAttribute("role","button"),t.iconClass&&n.R3(this.action,l(`span.icon.${t.iconClass}`));const s=n.R3(this.action,l("span"));s.textContent=i?`${t.label} (${i})`:t.label,this._register(n.nm(this.actionContainer,n.tw.CLICK,(e=>{e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer)}))),this._register(n.nm(this.actionContainer,n.tw.KEY_DOWN,(e=>{const i=new o.y(e);(i.equals(3)||i.equals(10))&&(e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer))}))),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}function u(e,t){return e&&t?(0,a.NC)("acessibleViewHint","Inspect this in the accessible view with {0}.",t):e?(0,a.NC)("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}},10791:(e,t,i)=>{"use strict";i.d(t,{g:()=>u});var n=i(2548),o=i(32907),s=i(6674),r=i(70959),a=i(2179),l=i(68801),c=i(11030);class d{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class u extends r.JT{constructor(e,t){var i;super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new d(n.R3(e,n.$(".monaco-icon-label")))),this.labelContainer=n.R3(this.domNode.element,n.$(".monaco-icon-label-container")),this.nameContainer=n.R3(this.labelContainer,n.$("span.monaco-icon-name-container")),(null===t||void 0===t?void 0:t.supportHighlights)||(null===t||void 0===t?void 0:t.supportIcons)?this.nameNode=new p(this.nameContainer,!!t.supportIcons):this.nameNode=new h(this.nameContainer),this.hoverDelegate=null!==(i=null===t||void 0===t?void 0:t.hoverDelegate)&&void 0!==i?i:(0,c.t)("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){var n;const s=["monaco-icon-label"],r=["monaco-icon-label-container"];let a="";if(i&&(i.extraClasses&&s.push(...i.extraClasses),i.italic&&s.push("italic"),i.strikethrough&&s.push("strikethrough"),i.disabledCommand&&r.push("disabled"),i.title&&("string"===typeof i.title?a+=i.title:a+=e)),this.domNode.className=s.join(" "),this.domNode.element.setAttribute("aria-label",a),this.labelContainer.className=r.join(" "),this.setupHover((null===i||void 0===i?void 0:i.descriptionTitle)?this.labelContainer:this.element,null===i||void 0===i?void 0:i.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const e=this.getOrCreateDescriptionNode();e instanceof o.q?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,null===i||void 0===i?void 0:i.labelEscapeNewLines),this.setupHover(e.element,null===i||void 0===i?void 0:i.descriptionTitle)):(e.textContent=t&&(null===i||void 0===i?void 0:i.labelEscapeNewLines)?o.q.escapeNewLines(t,[]):t||"",this.setupHover(e.element,(null===i||void 0===i?void 0:i.descriptionTitle)||""),e.empty=!t)}if((null===i||void 0===i?void 0:i.suffix)||this.suffixNode){const e=this.getOrCreateSuffixNode();e.textContent=null!==(n=null===i||void 0===i?void 0:i.suffix)&&void 0!==n?n:""}}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate.showNativeHover)(0,s.O)(e,t);else{const i=(0,s.g)(this.hoverDelegate,e,t);i&&this.customHovers.set(e,i)}else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const e=this._register(new d(n.e4(this.nameContainer,n.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new d(n.R3(e.element,n.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){var e;if(!this.descriptionNode){const t=this._register(new d(n.R3(this.labelContainer,n.$("span.monaco-icon-description-container"))));(null===(e=this.creationOptions)||void 0===e?void 0:e.supportDescriptionHighlights)?this.descriptionNode=new o.q(n.R3(t.element,n.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons}):this.descriptionNode=this._register(new d(n.R3(t.element,n.$("span.label-description"))))}return this.descriptionNode}}class h{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,a.fS)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=n.R3(this.container,n.$("a.label-name",{id:null===t||void 0===t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const o={start:n,end:n+e.length},s=i.map((e=>l.e.intersect(o,e))).filter((e=>!l.e.isEmpty(e))).map((({start:e,end:t})=>({start:e-n,end:t-n})));return n=o.end+t.length,s}))}class p{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,a.fS)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new o.q(n.R3(this.container,n.$("a.label-name",{id:null===t||void 0===t?void 0:t.domId})),{supportIcons:this.supportIcons})),this.singleLabel.set(e,null===t||void 0===t?void 0:t.matches,void 0,null===t||void 0===t?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(null===t||void 0===t?void 0:t.separator)||"/",s=g(e,i,null===t||void 0===t?void 0:t.matches);for(let r=0;r{"use strict";i.d(t,{O:()=>u,g:()=>g});var n=i(2548),o=i(85398),s=i(55191),r=i(81478),a=i(96559),l=i(70959),c=i(55455),d=i(25206);function u(e,t){(0,c.HD)(t)?e.title=(0,a.x$)(t):(null===t||void 0===t?void 0:t.markdownNotSupportedFallback)?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}class h{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){var n;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let o;if(void 0===e||(0,c.HD)(e)||e instanceof HTMLElement)o=e;else if((0,c.mf)(e.markdown)){this._hoverWidget||this.show((0,d.NC)("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new s.A;const i=this._cancellationTokenSource.token;if(o=await e.markdown(i),void 0===o&&(o=e.markdownNotSupportedFallback),this.isDisposed||i.isCancellationRequested)return}else o=null!==(n=e.markdown)&&void 0!==n?n:e.markdownNotSupportedFallback;this.show(o,t,i)}show(e,t,i){const n=this._hoverWidget;if(this.hasContent(e)){const o={content:e,target:this.target,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!n},position:{hoverPosition:2},...i};this._hoverWidget=this.hoverDelegate.showHover(o,t)}null===n||void 0===n||n.dispose()}hasContent(e){return!!e&&(!(0,r.Fr)(e)||!!e.value)}get isDisposed(){var e;return null===(e=this._hoverWidget)||void 0===e?void 0:e.isDisposed}dispose(){var e,t;null===(e=this._hoverWidget)||void 0===e||e.dispose(),null===(t=this._cancellationTokenSource)||void 0===t||t.dispose(!0),this._cancellationTokenSource=void 0}}function g(e,t,i,s){let r,a;const c=(t,i)=>{var n;const o=void 0!==a;t&&(null===a||void 0===a||a.dispose(),a=void 0),i&&(null===r||void 0===r||r.dispose(),r=void 0),o&&(null===(n=e.onDidHideHover)||void 0===n||n.call(e),a=void 0)},d=(n,r,l)=>new o._F((async()=>{a&&!a.isDisposed||(a=new h(e,l||t,n>0),await a.update("function"===typeof i?i():i,r,s))}),n);let u=!1;const g=n.nm(t,n.tw.MOUSE_DOWN,(()=>{u=!0,c(!0,!0)}),!0),p=n.nm(t,n.tw.MOUSE_UP,(()=>{u=!1}),!0),f=n.nm(t,n.tw.MOUSE_LEAVE,(e=>{u=!1,c(!1,e.fromElement===t)}),!0),m=()=>{if(r)return;const i=new l.SL,o={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>{o.x=e.x+10,e.target instanceof HTMLElement&&e.target.classList.contains("action-label")&&c(!0,!0)};i.add(n.nm(t,n.tw.MOUSE_MOVE,e,!0))}i.add(d(e.delay,!1,o)),r=i},v=n.nm(t,n.tw.MOUSE_OVER,m,!0),_=()=>{if(u||r)return;const i={targetElements:[t],dispose:()=>{}},o=new l.SL,s=()=>c(!0,!0);o.add(n.nm(t,n.tw.BLUR,s,!0)),o.add(d(e.delay,!1,i)),r=o},b=n.nm(t,n.tw.FOCUS,_,!0),y={show:e=>{c(!1,!0),d(0,e)},hide:()=>{c(!0,!0)},update:async(e,t)=>{i=e,await(null===a||void 0===a?void 0:a.update(i,void 0,t))},dispose:()=>{v.dispose(),f.dispose(),g.dispose(),p.dispose(),b.dispose(),c(!0,!0)}};return y}},66426:(e,t,i)=>{"use strict";i.d(t,{T:()=>r,h:()=>a});var n=i(2548),o=i(99588);const s=new RegExp(`(\\\\)?\\$\\((${o.k.iconNameExpression}(?:${o.k.iconModifierExpression})?)\\)`,"g");function r(e){const t=new Array;let i,n=0,o=0;while(null!==(i=s.exec(e))){o=i.index||0,n{"use strict";i.d(t,{pG:()=>_,g4:()=>m});var n=i(2548),o=i(9172),s=i(73228),r=i(78089),a=i(69332),l=i(60841),c=i(9194),d=i(11271);class u{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class h{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._navigator.next()}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return null===this._navigator.current()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new u(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var g=i(2179),p=i(25206);const f=n.$,m={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class v extends c.${constructor(e,t,i){var s;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new d.Q5),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new d.Q5),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!==(s=this.options.tooltip)&&void 0!==s?s:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=n.R3(e,f(".monaco-inputbox.idle"));const a=this.options.flexibleHeight?"textarea":"input",c=n.R3(this.element,f(".ibwrapper"));if(this.input=n.R3(c,f(a+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,(()=>this.element.classList.add("synthetic-focus"))),this.onblur(this.input,(()=>this.element.classList.remove("synthetic-focus"))),this.options.flexibleHeight){this.maxHeight="number"===typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=n.R3(c,f("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new l.NB(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),n.R3(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new o.Y(e.ownerDocument,"selectionchange")),i=d.ju.filter(t.event,(()=>{const t=e.ownerDocument.getSelection();return(null===t||void 0===t?void 0:t.anchorNode)===c}));this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,(()=>this.onValueChange())),this.onblur(this.input,(()=>this.onBlur())),this.onfocus(this.input,(()=>this.onFocus())),this._register(this.ignoreGesture(this.input)),setTimeout((()=>this.updateMirror()),0),this.options.actions&&(this.actionbar=this._register(new r.o(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.input.title=e}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"===typeof this.cachedHeight?this.cachedHeight:n.wn(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return n.H9(this.input)}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!==typeof this.cachedContentHeight||"number"!==typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){if("open"===this.state&&(0,g.fS)(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${n.XT(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null===e||void 0===e?void 0:e.type}stylesForType(e){const t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=n.w(this.element)+"px";let i;this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{var o,r;if(!this.message)return null;e=n.R3(i,f(".monaco-inputbox-container")),t();const a={inline:!0,className:"monaco-inputbox-message"},l=this.message.formatContent?(0,s.BO)(this.message.content,a):(0,s.IY)(this.message.content,a);l.classList.add(this.classForType(this.message.type));const c=this.stylesForType(this.message.type);return l.style.backgroundColor=null!==(o=c.background)&&void 0!==o?o:"",l.style.color=null!==(r=c.foreground)&&void 0!==r?r:"",l.style.border=c.border?`1px solid ${c.border}`:"",n.R3(e,l),null},onHide:()=>{this.state="closed"},layout:t}),i=3===this.message.type?p.NC("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?p.NC("alertWarningMessage","Warning: {0}",this.message.content):p.NC("alertInfoMessage","Info: {0}",this.message.content),a.Z9(i),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=e.charCodeAt(e.length-1),i=10===t?" ":"",n=(e+i).replace(/\u000c/g,"");n?this.mirror.textContent=e+i:this.mirror.innerText=" ",this.layout()}applyStyles(){var e,t,i;const o=this.options.inputBoxStyles,s=null!==(e=o.inputBackground)&&void 0!==e?e:"",r=null!==(t=o.inputForeground)&&void 0!==t?t:"",a=null!==(i=o.inputBorder)&&void 0!==i?i:"";this.element.style.backgroundColor=s,this.element.style.color=r,this.input.style.backgroundColor="inherit",this.input.style.color=r,this.element.style.border=`1px solid ${n.XT(a,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=n.wn(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,o=t.value;null!==i&&null!==n&&(this.value=o.substr(0,i)+e+o.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){var e;this._hideMessage(),this.message=null,null===(e=this.actionbar)||void 0===e||e.dispose(),super.dispose()}}class _ extends v{constructor(e,t,i){const o=p.NC({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is ⇅ to represent the up and down arrow keys.']}," or {0} for history","⇅"),s=p.NC({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is ⇅ to represent the up and down arrow keys.']}," ({0} for history)","⇅");super(e,t,i),this._onDidFocus=this._register(new d.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new d.Q5),this.onDidBlur=this._onDidBlur.event,this.history=new h(i.history,100);const r=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(o)&&!this.placeholder.endsWith(s)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?o:s,t=this.placeholder+e;i.showPlaceholderOnFocus&&!n.H9(this.input)?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver(((e,t)=>{e.forEach((e=>{e.target.textContent||r()}))})),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,(()=>r())),this.onblur(this.input,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(s)||e(o)}))}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=null!==e&&void 0!==e?e:"",a.i7(this.value?this.value:p.NC("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,a.i7(this.value))}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}},64347:(e,t,i)=>{"use strict";i.d(t,{F:()=>l,e:()=>c});var n=i(2548),o=i(9501),s=i(2179),r=i(25206);const a=n.$,l={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class c{constructor(e,t,i){this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const o=this.options.keybindingLabelForeground;this.domNode=n.R3(e,a(".monaco-keybinding")),o&&(this.domNode.style.color=o),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&c.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){var e;if(this.clear(),this.keybinding){const t=this.keybinding.getChords();t[0]&&this.renderChord(this.domNode,t[0],this.matches?this.matches.firstPart:null);for(let e=1;e{"use strict";i.d(t,{kX:()=>E,Bv:()=>R});var n=i(1483),o=i(2548),s=i(9172),r=i(1212),a=i(60841),l=i(21921),c=i(85398),d=i(58718),u=i(11271),h=i(70959),g=i(68801),p=i(4225);function f(e,t){const i=[];for(const n of t){if(e.start>=n.range.end)continue;if(e.ende.concat(t)),[]))}class b{get paddingTop(){return this._paddingTop}set paddingTop(e){this._size=this._size+e-this._paddingTop,this._paddingTop=e}constructor(e){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=null!==e&&void 0!==e?e:0,this._size=this._paddingTop}splice(e,t,i=[]){const n=i.length-t,o=f({start:0,end:e},this.groups),s=f({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((e=>({range:m(e.range,n),size:e.size}))),r=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=_(o,r,s),this._size=this._paddingTop+this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e{for(const i of e){const e=this.getRenderer(t);e.disposeTemplate(i.templateData),i.templateData=null}})),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var C=i(98642),S=i(46304),x=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 k={CurrentDragAndDropData:void 0},L={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(e){return[e]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class E{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class N{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class D{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;ti,(null===e||void 0===e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null===e||void 0===e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null===e||void 0===e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>{}}}class R{get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,o.FK)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i,n=L){var s,l,d,g,f,m,v,_,b,y,C,S,x;if(this.virtualDelegate=t,this.domId="list_id_"+ ++R.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new c.vp(50),this.splicing=!1,this.dragOverAnimationStopDisposable=h.JT.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=h.JT.None,this.onDragLeaveTimeout=h.JT.None,this.disposables=new h.SL,this._onDidChangeContentHeight=new u.Q5,this._onDidChangeContentWidth=new u.Q5,this.onDidChangeContentHeight=u.ju.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(null!==(s=n.paddingTop)&&void 0!==s?s:0);for(const o of i)this.renderers.set(o.templateId,o);this.cache=this.disposables.add(new w(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!==typeof n.mouseSupport||n.mouseSupport),this._horizontalScrolling=null!==(l=n.horizontalScrolling)&&void 0!==l?l:L.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom="undefined"===typeof n.paddingBottom?0:n.paddingBottom,this.accessibilityProvider=new I(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";const k=null!==(d=n.transformOptimization)&&void 0!==d?d:L.transformOptimization;k&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(r.o.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new p.Rm({forceIntegerValues:!0,smoothScrollDuration:null!==(g=n.smoothScrolling)&&void 0!==g&&g?125:0,scheduleAtNextAnimationFrame:e=>(0,o.jL)((0,o.Jj)(this.domNode),e)})),this.scrollableElement=this.disposables.add(new a.$Z(this.rowsContainer,{alwaysConsumeMouseWheel:null!==(f=n.alwaysConsumeMouseWheel)&&void 0!==f?f:L.alwaysConsumeMouseWheel,horizontal:1,vertical:null!==(m=n.verticalScrollMode)&&void 0!==m?m:L.verticalScrollMode,useShadows:null!==(v=n.useShadows)&&void 0!==v?v:L.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity,scrollByPage:n.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,o.nm)(this.rowsContainer,r.t.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,o.nm)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,o.nm)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,o.nm)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,o.nm)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,o.nm)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=null!==(_=n.setRowLineHeight)&&void 0!==_?_:L.setRowLineHeight,this.setRowHeight=null!==(b=n.setRowHeight)&&void 0!==b?b:L.setRowHeight,this.supportDynamicHeights=null!==(y=n.supportDynamicHeights)&&void 0!==y?y:L.supportDynamicHeights,this.dnd=null!==(C=n.dnd)&&void 0!==C?C:this.disposables.add(L.dnd),this.layout(null===(S=n.initialSize)||void 0===S?void 0:S.height,null===(x=n.initialSize)||void 0===x?void 0:x.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...null!==t&&void 0!==t?t:{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...null!==t&&void 0!==t?t:{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...null!==t&&void 0!==t?t:{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new b(e)}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o={start:e,end:e+t},s=g.e.intersect(n,o),r=new Map;for(let h=s.end-1;h>=s.start;h--){const e=this.items[h];if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){let t=r.get(e.templateId);t||(t=[],r.set(e.templateId,t));const i=this.renderers.get(e.templateId);i&&i.disposeElement&&i.disposeElement(e.element,h,e.row.templateData,e.size),t.push(e.row)}e.row=null,e.stale=!0}const a={start:e+t,end:this.items.length},l=g.e.intersect(a,n),c=g.e.relativeComplement(a,n),d=i.map((e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:h.JT.None,checkedDisposable:h.JT.None,stale:!1})));let u;0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,d),u=this.items,this.items=d):(this.rangeMap.splice(e,t,d),u=this.items.splice(e,t,...d));const p=i.length-t,f=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),v=m(l,p),_=g.e.intersect(f,v);for(let h=_.start;h<_.end;h++)this.updateItemInDOM(this.items[h],h);const b=g.e.relativeComplement(v,f);for(const h of b)for(let e=h.start;em(e,p))),w={start:e,end:e+i.length},C=[w,...y].map((e=>g.e.intersect(f,e))).reverse();for(const h of C)for(let e=h.end-1;e>=h.start;e--){const t=this.items[e],i=r.get(t.templateId),n=null===i||void 0===i?void 0:i.pop();this.insertItemInDOM(e,n)}for(const h of r.values())for(const e of h)this.cache.release(e);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),u.map((e=>e.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,o.jL)((0,o.Jj)(this.domNode),(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)"undefined"!==typeof t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){const e=this.scrollableElement.getScrollDimensions();return e.height}get firstVisibleIndex(){const e=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);return e.start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex((t=>t.element===e))}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:"number"===typeof e?e:(0,o.If)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:(0,o.FK)(this.domNode)})}render(e,t,i,n,o,s=!1){const r=this.getRenderRange(t,i),a=g.e.relativeComplement(r,e).reverse(),l=g.e.relativeComplement(e,r);if(s){const t=g.e.intersect(e,r);for(let e=t.start;e{for(const e of l)for(let t=e.start;t=e.start;t--)this.insertItemInDOM(t)})),void 0!==n&&(this.rowsContainer.style.left=`-${n}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==o&&(this.rowsContainer.style.width=`${Math.max(o,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){var i,n,s;const r=this.items[e];if(!r.row)if(t)r.row=t,r.stale=!0;else{const e=this.cache.alloc(r.templateId);r.row=e.row,r.stale||(r.stale=e.isReusingConnectedDomNode)}const a=this.accessibilityProvider.getRole(r.element)||"listitem";r.row.domNode.setAttribute("role",a);const l=this.accessibilityProvider.isChecked(r.element);if("boolean"===typeof l)r.row.domNode.setAttribute("aria-checked",String(!!l));else if(l){const e=e=>r.row.domNode.setAttribute("aria-checked",String(!!e));e(l.value),r.checkedDisposable=l.onDidChange(e)}if(r.stale||!r.row.domNode.parentElement){const t=null!==(s=null===(n=null===(i=this.items.at(e+1))||void 0===i?void 0:i.row)||void 0===n?void 0:n.domNode)&&void 0!==s?s:null;this.rowsContainer.insertBefore(r.row.domNode,t),r.stale=!1}this.updateItemInDOM(r,e);const c=this.renderers.get(r.templateId);if(!c)throw new Error(`No renderer found for template id ${r.templateId}`);null===c||void 0===c||c.renderElement(r.element,e,r.row.templateData,r.size);const d=this.dnd.getDragURI(r.element);r.dragStartDisposable.dispose(),r.row.domNode.draggable=!!d,d&&(r.dragStartDisposable=(0,o.nm)(r.row.domNode,"dragstart",(e=>this.onDragStart(r.element,d,e)))),this.horizontalScrolling&&(this.measureItemWidth(r),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,o.FK)(e.row.domNode);const t=(0,o.Jj)(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){const e=this.scrollableElement.getScrollPosition();return e.scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return u.ju.map(this.disposables.add(new s.Y(this.domNode,"click")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseDblClick(){return u.ju.map(this.disposables.add(new s.Y(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseMiddleClick(){return u.ju.filter(u.ju.map(this.disposables.add(new s.Y(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e)),this.disposables),(e=>1===e.browserEvent.button),this.disposables)}get onMouseDown(){return u.ju.map(this.disposables.add(new s.Y(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOver(){return u.ju.map(this.disposables.add(new s.Y(this.domNode,"mouseover")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOut(){return u.ju.map(this.disposables.add(new s.Y(this.domNode,"mouseout")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onContextMenu(){return u.ju.any(u.ju.map(this.disposables.add(new s.Y(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e)),this.disposables),u.ju.map(this.disposables.add(new s.Y(this.domNode,r.t.Contextmenu)).event,(e=>this.toGestureEvent(e)),this.disposables))}get onTouchStart(){return u.ju.map(this.disposables.add(new s.Y(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)),this.disposables)}get onTap(){return u.ju.map(this.disposables.add(new s.Y(this.rowsContainer,r.t.Tap)).event,(e=>this.toGestureEvent(e)),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i="undefined"===typeof t?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t],n=i&&i.element,o=this.getTargetSector(e,t);return{browserEvent:e,index:t,element:n,sector:o}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){var s,r;if(!i.dataTransfer)return;const a=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(n.g.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(a,i)),"undefined"===typeof e&&(e=String(a.length));const t=(0,o.$)(".monaco-drag-image");t.textContent=e;const n=e=>{while(e&&!e.classList.contains("monaco-workbench"))e=e.parentElement;return e||this.domNode.ownerDocument},s=n(this.domNode);s.appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>s.removeChild(t)),0)}this.domNode.classList.add("dragging"),this.currentDragData=new E(a),k.CurrentDragAndDropData=new N(a),null===(r=(s=this.dnd).onDragStart)||void 0===r||r.call(s,this.currentDragData,i)}onDragOver(e){var t,i;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),k.CurrentDragAndDropData&&"vscode-ui"===k.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(k.CurrentDragAndDropData)this.currentDragData=k.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new D}const n=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"===typeof n?n:n.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let o;e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof n&&0===(null===(t=n.effect)||void 0===t?void 0:t.type)?"copy":"move",o="boolean"!==typeof n&&n.feedback?n.feedback:"undefined"===typeof e.index?[-1]:[e.index],o=(0,l.EB)(o).filter((e=>e>=-1&&ee-t)),o=-1===o[0]?[-1]:o;let s="boolean"!==typeof n&&n.effect&&n.effect.position?n.effect.position:"drop-target";if(T(this.currentDragFeedback,o)&&this.currentDragFeedbackPosition===s)return!0;if(this.currentDragFeedback=o,this.currentDragFeedbackPosition=s,this.currentDragFeedbackDisposable.dispose(),-1===o[0])this.domNode.classList.add(s),this.rowsContainer.classList.add(s),this.currentDragFeedbackDisposable=(0,h.OF)((()=>{this.domNode.classList.remove(s),this.rowsContainer.classList.remove(s)}));else{if(o.length>1&&"drop-target"!==s)throw new Error("Can't use multiple feedbacks with position different than 'over'");"drop-target-after"===s&&o[0]{var e;for(const t of o){const i=this.items[t];i.dropTarget=!1,null===(e=i.row)||void 0===e||e.domNode.classList.remove(s)}}))}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,c.Vg)((()=>this.clearDragOverFeedback()),100,this.disposables),this.currentDragData&&(null===(i=(t=this.dnd).onDragLeave)||void 0===i||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,k.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,k.CurrentDragAndDropData=void 0,null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=h.JT.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,o.xQ)(this.domNode).top;this.dragOverAnimationDisposable=(0,o.jt)((0,o.Jj)(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,c.Vg)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;const i=e.offsetY/this.items[t].size,n=Math.floor(i/.25);return(0,S.uZ)(n,0,3)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;while(i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i)){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let o,s;e===this.elementTop(n.start)?(o=n.start,s=0):n.end-n.start>1&&(o=n.start+1,s=this.elementTop(o)-e);let r=0;while(1){const a=this.getRenderRange(e,t);let l=!1;for(let e=a.start;e=e.start;t--)this.insertItemInDOM(t);for(let e=a.start;e{"use strict";i.d(t,{wD:()=>q,aV:()=>ie,sx:()=>$,AA:()=>y,dk:()=>A,iK:()=>M,cK:()=>D,$B:()=>R,hD:()=>I,wn:()=>j,Zo:()=>V,xf:()=>P,Et:()=>O,uZ:()=>K});var n=i(2548),o=i(9172),s=i(45429),r=i(1212),a=i(69332);class l{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((n=>n.splice(e,t,i)))}}var c=i(21921),d=i(85398),u=i(60204),h=i(58718),g=i(11271),p=i(90774),f=i(70959),m=i(46304),v=i(47606),_=i(55455);class b extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var y,w,C=i(75461),S=i(75467),x=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 k{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex((e=>e.templateData===i));if(n>=0){const e=this.renderedElements[n];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const o of this.renderedElements)o.index=e+t&&n.push({index:o.index+i-t,templateData:o.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class L{get name(){return this._trait}get renderer(){return new k(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.Q5,this.onChange=this._onChange.event}splice(e,t,i){const n=i.length-t,o=e+t,s=[];let r=0;while(r=o)s.push(this.sortedIndexes[r++]+n);this.renderer.splice(e,t,i.length),this._set(s,s)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(J),t)}_set(e,t,i){const n=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const s=Q(o,e);return this.renderer.renderIndexes(s),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return(0,c.ry)(this.sortedIndexes,e,J)>=0}dispose(){(0,f.B9)(this._onChange)}}x([h.H],L.prototype,"renderer",null);class E extends L{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class N{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,new Array(i.length).fill(!1));const n=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString()));if(0===n.length)return this.trait.splice(e,t,new Array(i.length).fill(!1));const o=new Set(n),s=i.map((e=>o.has(this.identityProvider.getId(e).toString())));this.trait.splice(e,t,s)}}function D(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function T(e,t){return!!e.classList.contains(t)||!e.classList.contains("monaco-list")&&(!!e.parentElement&&T(e.parentElement,t))}function I(e){return T(e,"monaco-editor")}function R(e){return T(e,"monaco-custom-toggle")}function A(e){return T(e,"action-item")}function O(e){return T(e,"monaco-tree-sticky-row")}function P(e){return e.classList.contains("monaco-tree-sticky-container")}function M(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&(!!e.parentElement&&M(e.parentElement))}class F{get onKeyDown(){return g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keydown")).event,(e=>e.filter((e=>!D(e.target))).map((e=>new s.y(e)))))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new f.SL,this.multipleSelectionDisposables=new f.SL,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown((e=>{switch(e.keyCode){case 3:return this.onEnter(e);case 16:return this.onUpArrow(e);case 18:return this.onDownArrow(e);case 11:return this.onPageUpArrow(e);case 12:return this.onPageDownArrow(e);case 9:return this.onEscape(e);case 31:this.multipleSelectionSupport&&(v.dz?e.metaKey:e.ctrlKey)&&this.onCtrlA(e)}})))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,c.w6)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}x([h.H],F.prototype,"onKeyDown",null),function(e){e[e["Automatic"]=0]="Automatic",e[e["Trigger"]=1]="Trigger"}(y||(y={})),function(e){e[e["Idle"]=0]="Idle",e[e["Typing"]=1]="Typing"}(w||(w={}));const B=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class H{constructor(e,t,i,n,o){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=n,this.delegate=o,this.enabled=!1,this.state=w.Idle,this.mode=y.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new f.SL,this.disposables=new f.SL,this.updateOptions(e.options)}updateOptions(e){var t,i;null===(t=e.typeNavigationEnabled)||void 0===t||t?this.enable():this.disable(),this.mode=null!==(i=e.typeNavigationMode)&&void 0!==i?i:y.Automatic}enable(){if(this.enabled)return;let e=!1;const t=g.ju.chain(this.enabledDisposables.add(new o.Y(this.view.domNode,"keydown")).event,(t=>t.filter((e=>!D(e.target))).filter((()=>this.mode===y.Automatic||this.triggered)).map((e=>new s.y(e))).filter((t=>e||this.keyboardNavigationEventFilter(t))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>n.zB.stop(e,!0))).map((e=>e.browserEvent.key)))),i=g.ju.debounce(t,(()=>null),800,void 0,void 0,void 0,this.enabledDisposables),r=g.ju.reduce(g.ju.any(t,i),((e,t)=>null===t?null:(e||"")+t),void 0,this.enabledDisposables);r(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t((()=>e=!0),void 0,this.enabledDisposables),i((()=>e=!1),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));i&&(0,a.Z9)(i)}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=w.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===w.Idle?1:0;this.state=w.Typing;for(let o=0;o1&&1===n.length)return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}}else if("undefined"===typeof r||(0,p.Ji)(e,r))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class W{constructor(e,t){this.list=e,this.view=t,this.disposables=new f.SL;const i=g.ju.chain(this.disposables.add(new o.Y(t.domNode,"keydown")).event,(e=>e.filter((e=>!D(e.target))).map((e=>new s.y(e))))),n=g.ju.chain(i,(e=>e.filter((e=>2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey))));n(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const o=i.querySelector("[tabIndex]");if(!o||!(o instanceof HTMLElement)||-1===o.tabIndex)return;const s=(0,n.Jj)(o).getComputedStyle(o);"hidden"!==s.visibility&&"none"!==s.display&&(e.preventDefault(),e.stopPropagation(),o.focus())}dispose(){this.disposables.dispose()}}function V(e){return v.dz?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function j(e){return e.browserEvent.shiftKey}function z(e){return(0,n.N5)(e)&&2===e.button}const U={isSelectionSingleChangeEvent:V,isSelectionRangeChangeEvent:j};class ${constructor(e){this.list=e,this.disposables=new f.SL,this._onPointer=new g.Q5,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||U),this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(r.o.addTarget(e.getHTMLElement()))),g.ju.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||U))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){I(e.browserEvent.target)||(0,n.vY)()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(D(e.browserEvent.target)||I(e.browserEvent.target))return;const t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(D(e.browserEvent.target)||I(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;return"undefined"===typeof t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),z(e.browserEvent)||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e))}onDoubleClick(e){if(D(e.browserEvent.target)||I(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if("undefined"===typeof i){const e=this.list.getFocus()[0];i=null!==e&&void 0!==e?e:t,this.list.setAnchor(i)}const n=Math.min(i,t),o=Math.max(i,t),s=(0,c.w6)(n,o+1),r=this.list.getSelection(),a=Z(Q(r,[i]),i);if(0===a.length)return;const l=Q(s,Y(r,a));this.list.setSelection(l,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const i=this.list.getSelection(),n=i.filter((e=>e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===n.length?this.list.setSelection([...n,t],e.browserEvent):this.list.setSelection(n,e.browserEvent)}}dispose(){this.disposables.dispose()}}class q{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){var t,i;const o=this.selectorSuffix&&`.${this.selectorSuffix}`,s=[];e.listBackground&&s.push(`.monaco-list${o} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(s.push(`.monaco-list${o}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),s.push(`.monaco-list${o}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&s.push(`.monaco-list${o}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(s.push(`.monaco-list${o}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),s.push(`.monaco-list${o}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&s.push(`.monaco-list${o}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&s.push(`.monaco-list${o}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&s.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${o}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&s.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${o}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(s.push(`.monaco-list${o} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),s.push(`.monaco-list${o} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&s.push(`.monaco-list${o} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(s.push(`.monaco-list${o} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),s.push(`.monaco-list${o} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(s.push(`.monaco-list${o} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),s.push(`.monaco-list${o} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&s.push(`.monaco-list${o} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&s.push(`.monaco-list${o}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&s.push(`.monaco-list${o}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const r=(0,n.XT)(e.listFocusAndSelectionOutline,(0,n.XT)(e.listSelectionOutline,null!==(t=e.listFocusOutline)&&void 0!==t?t:""));r&&s.push(`.monaco-list${o}:focus .monaco-list-row.focused.selected { outline: 1px solid ${r}; outline-offset: -1px;}`),e.listFocusOutline&&s.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${o}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list${o}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`);const a=(0,n.XT)(e.listSelectionOutline,null!==(i=e.listInactiveFocusOutline)&&void 0!==i?i:"");a&&s.push(`.monaco-list${o} .monaco-list-row.focused.selected { outline: 1px dotted ${a}; outline-offset: -1px; }`),e.listSelectionOutline&&s.push(`.monaco-list${o} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&s.push(`.monaco-list${o} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&s.push(`.monaco-list${o} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&s.push(`\n\t\t\t\t.monaco-list${o}.drop-target,\n\t\t\t\t.monaco-list${o} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${o} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }\n\t\t\t`),e.listDropBetweenBackground&&(s.push(`\n\t\t\t.monaco-list${o} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,\n\t\t\t.monaco-list${o} .monaco-list-row.drop-target-before::before {\n\t\t\t\tcontent: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`),s.push(`\n\t\t\t.monaco-list${o} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,\n\t\t\t.monaco-list${o} .monaco-list-row.drop-target-after::after {\n\t\t\t\tcontent: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`)),e.tableColumnsBorder&&s.push(`\n\t\t\t\t.monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t}\n\t\t\t`),e.tableOddRowsBackgroundColor&&s.push(`\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ${e.tableOddRowsBackgroundColor};\n\t\t\t\t}\n\t\t\t`),this.styleElement.textContent=s.join("\n")}}const K={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:u.Il.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:u.Il.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:u.Il.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0},G={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}}};function Z(e,t){const i=e.indexOf(t);if(-1===i)return[];const n=[];let o=i-1;while(o>=0&&e[o]===t-(i-o))n.push(e[o--]);n.reverse(),o=i;while(o=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){i.push(e[n]),n++,o++;continue}e[n]=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){n++,o++;continue}e[n]e-t;class X{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,n){let o=0;for(const s of this.renderers)s.renderElement(e,t,i[o++],n)}disposeElement(e,t,i,n){var o;let s=0;for(const r of this.renderers)null===(o=r.disposeElement)||void 0===o||o.call(r,e,t,i[s],n),s+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class ee{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e);n?i.setAttribute("aria-label",n):i.removeAttribute("aria-label");const o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof o?i.setAttribute("aria-level",`${o}`):i.removeAttribute("aria-level")}disposeTemplate(e){}}class te{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements(),i=t.indexOf(e)>-1?t:[e];return i}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,e,t)}onDragOver(e,t,i,n,o){return this.dnd.onDragOver(e,t,i,n,o)}onDragLeave(e,t,i,n){var o,s;null===(s=(o=this.dnd).onDragLeave)||void 0===s||s.call(o,e,t,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}drop(e,t,i,n,o){this.dnd.drop(e,t,i,n,o)}dispose(){this.dnd.dispose()}}class ie{get onDidChangeFocus(){return g.ju.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)),this.disposables)}get onDidChangeSelection(){return g.ju.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keydown")).event,(t=>t.map((e=>new s.y(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map((e=>n.zB.stop(e,!0))).filter((()=>!1)))),i=g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keyup")).event,(t=>t.forEach((()=>e=!1)).map((e=>new s.y(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map((e=>n.zB.stop(e,!0))).map((({browserEvent:e})=>{const t=this.getFocus(),i=t.length?t[0]:void 0,n="undefined"!==typeof i?this.view.element(i):void 0,o="undefined"!==typeof i?this.view.domElement(i):this.view.domNode;return{index:i,element:n,anchor:o,browserEvent:e}})))),r=g.ju.chain(this.view.onContextMenu,(t=>t.filter((t=>!e)).map((({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:new S.n((0,n.Jj)(this.view.domNode),i),browserEvent:i})))));return g.ju.any(t,i,r)}get onKeyDown(){return this.disposables.add(new o.Y(this.view.domNode,"keydown")).event}get onDidFocus(){return g.ju.signal(this.disposables.add(new o.Y(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return g.ju.signal(this.disposables.add(new o.Y(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,o,s=G){var r,a,c,d;this.user=e,this._options=s,this.focus=new L("focused"),this.anchor=new L("anchor"),this.eventBufferer=new g.E7,this._ariaLabel="",this.disposables=new f.SL,this._onDidDispose=new g.Q5,this.onDidDispose=this._onDidDispose.event;const u=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(r=this._options.accessibilityProvider)||void 0===r?void 0:r.getWidgetRole():"list";this.selection=new E("listbox"!==u);const h=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=s.accessibilityProvider,this.accessibilityProvider&&(h.push(new ee(this.accessibilityProvider)),null===(c=(a=this.accessibilityProvider).onDidChangeActiveDescendant)||void 0===c||c.call(a,this.onDidChangeActiveDescendant,this,this.disposables)),o=o.map((e=>new X(e.templateId,[...h,e])));const p={...s,dnd:s.dnd&&new te(this,s.dnd)};if(this.view=this.createListView(t,i,o,p),this.view.domNode.setAttribute("role",u),s.styleController)this.styleController=s.styleController(this.view.domId);else{const e=(0,n.dS)(this.view.domNode);this.styleController=new q(e,this.view.domId)}if(this.spliceable=new l([new N(this.focus,this.view,s.identityProvider),new N(this.selection,this.view,s.identityProvider),new N(this.anchor,this.view,s.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new W(this,this.view)),("boolean"!==typeof s.keyboardSupport||s.keyboardSupport)&&(this.keyboardController=new F(this,this.view,s),this.disposables.add(this.keyboardController)),s.keyboardNavigationLabelProvider){const e=s.keyboardNavigationDelegate||B;this.typeNavigationController=new H(this,this.view,s.keyboardNavigationLabelProvider,null!==(d=s.keyboardNavigationEventFilter)&&void 0!==d?d:()=>!0,e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(s),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,n){return new C.Bv(e,t,i,n)}createMouseController(e){return new $(this)}updateOptions(e={}){var t,i;this._options={...this._options,...e},null===(t=this.typeNavigationController)||void 0===t||t.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),null===(i=this.keyboardController)||void 0===i||i.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new b(this.user,`Invalid start index: ${e}`);if(t<0)throw new b(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new b(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if("undefined"!==typeof e){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,c.Xh)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return"undefined"===typeof e?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new b(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),s=this.findNextIndex(o.length>0?o[0]+e:0,t,n);s>-1&&this.setFocus([s],i)}focusPrevious(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),s=this.findPreviousIndex(o.length>0?o[0]-e:0,t,n);s>-1&&this.setFocus([s],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const n=this.getFocus()[0];if(n!==i&&(void 0===n||i>n)){const o=this.findPreviousIndex(i,!1,t);o>-1&&n!==o?this.setFocus([o],e):this.setFocus([i],e)}else{const o=this.view.getScrollTop();let s=o+this.view.renderHeight;i>n&&(s-=this.view.elementHeight(i)),this.view.setScrollTop(s),this.view.getScrollTop()!==o&&(this.setFocus([]),await(0,d.Vs)(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t,i=(()=>0)){let n;const o=i(),s=this.view.getScrollTop()+o;n=0===s?this.view.indexAt(s):this.view.indexAfter(s-1);const r=this.getFocus()[0];if(r!==n&&(void 0===r||r>=n)){const i=this.findNextIndex(n,!1,t);i>-1&&r!==i?this.setFocus([i],e):this.setFocus([n],e)}else{const n=s;this.view.setScrollTop(s-this.view.renderHeight-o),this.view.getScrollTop()+i()!==n&&(this.setFocus([]),await(0,d.Vs)(0),await this.focusPreviousPage(e,t,i))}}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e,t=!1,i){for(let n=0;n=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;nthis.view.element(e)))}reveal(e,t,i=0){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);const n=this.view.getScrollTop(),o=this.view.elementTop(e),s=this.view.elementHeight(e);if((0,_.hj)(t)){const e=s-this.view.renderHeight+i;this.view.setScrollTop(e*(0,m.uZ)(t,0,1)+o-i)}else{const e=o+s,t=n+this.view.renderHeight;o=t||(o=t&&s>=this.view.renderHeight?this.view.setScrollTop(o-i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e,t=0){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),o=this.view.elementHeight(e);if(ni+this.view.renderHeight)return null;const s=o-this.view.renderHeight+t;return Math.abs((i+t-n)/s)}isDOMFocused(){return(0,n.H9)(this.view.domNode)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map((e=>this.view.element(e))),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}x([h.H],ie.prototype,"onDidChangeFocus",null),x([h.H],ie.prototype,"onDidChangeSelection",null),x([h.H],ie.prototype,"onContextMenu",null),x([h.H],ie.prototype,"onKeyDown",null),x([h.H],ie.prototype,"onDidFocus",null),x([h.H],ie.prototype,"onDidBlur",null)},83950:(e,t,i)=>{"use strict";i.d(t,{f:()=>a});var n=i(2548),o=i(18612),s=i(11271),r=i(70959);class a{constructor(){let e;this._onDidWillResize=new s.Q5,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new s.Q5,this.onDidResize=this._onDidResize.event,this._sashListener=new r.SL,this._size=new n.Ro(0,0),this._minSize=new n.Ro(0,0),this._maxSize=new n.Ro(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new o.g(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new o.g(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new o.g(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:o.l.North}),this._southSash=new o.g(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:o.l.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(s.ju.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)}))),this._sashListener.add(s.ju.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((n=>{e&&(i=n.currentX-n.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((n=>{e&&(i=-(n.currentX-n.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))}))),this._sashListener.add(s.ju.any(this._eastSash.onDidReset,this._westSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(s.ju.any(this._northSash.onDidReset,this._southSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))})))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:o}=this._minSize,{height:s,width:r}=this._maxSize;e=Math.max(i,Math.min(s,e)),t=Math.max(o,Math.min(r,t));const a=new n.Ro(t,e);n.Ro.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}},18612:(e,t,i)=>{"use strict";i.d(t,{g:()=>C,l:()=>g});var n=i(2548),o=i(9172),s=i(1212),r=i(85398),a=i(58718),l=i(11271),c=i(70959),d=i(47606),u=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 h=!1;var g;(function(e){e["North"]="north",e["South"]="south",e["East"]="east",e["West"]="west"})(g||(g={}));let p=4;const f=new l.Q5;let m=300;const v=new l.Q5;class _{constructor(e){this.el=e,this.disposables=new c.SL}get onPointerMove(){return this.disposables.add(new o.Y((0,n.Jj)(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new o.Y((0,n.Jj)(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}u([a.H],_.prototype,"onPointerMove",null),u([a.H],_.prototype,"onPointerUp",null);class b{get onPointerMove(){return this.disposables.add(new o.Y(this.el,s.t.Change)).event}get onPointerUp(){return this.disposables.add(new o.Y(this.el,s.t.End)).event}constructor(e){this.el=e,this.disposables=new c.SL}dispose(){this.disposables.dispose()}}u([a.H],b.prototype,"onPointerMove",null),u([a.H],b.prototype,"onPointerUp",null);class y{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}u([a.H],y.prototype,"onPointerMove",null),u([a.H],y.prototype,"onPointerUp",null);const w="pointer-events-disabled";class C extends c.JT{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,n.R3)(this.el,(0,n.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,c.OF)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new o.Y(this._orthogonalStartDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new o.Y(this._orthogonalStartDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,n.R3)(this.el,(0,n.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,c.OF)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new o.Y(this._orthogonalEndDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new o.Y(this._orthogonalEndDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){super(),this.hoverDelay=m,this.hoverDelayer=this._register(new r.vp(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new l.Q5),this._onDidStart=this._register(new l.Q5),this._onDidChange=this._register(new l.Q5),this._onDidReset=this._register(new l.Q5),this._onDidEnd=this._register(new l.Q5),this.orthogonalStartSashDisposables=this._register(new c.SL),this.orthogonalStartDragHandleDisposables=this._register(new c.SL),this.orthogonalEndSashDisposables=this._register(new c.SL),this.orthogonalEndDragHandleDisposables=this._register(new c.SL),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,n.R3)(e,(0,n.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),d.dz&&this.el.classList.add("mac");const a=this._register(new o.Y(this.el,"mousedown")).event;this._register(a((t=>this.onPointerStart(t,new _(e))),this));const u=this._register(new o.Y(this.el,"dblclick")).event;this._register(u(this.onPointerDoublePress,this));const g=this._register(new o.Y(this.el,"mouseenter")).event;this._register(g((()=>C.onMouseEnter(this))));const y=this._register(new o.Y(this.el,"mouseleave")).event;this._register(y((()=>C.onMouseLeave(this)))),this._register(s.o.addTarget(this.el));const w=this._register(new o.Y(this.el,s.t.Start)).event;this._register(w((e=>this.onPointerStart(e,new b(this.el))),this));const S=this._register(new o.Y(this.el,s.t.Tap)).event;let x;this._register(S((e=>{if(x)return clearTimeout(x),x=void 0,void this.onPointerDoublePress(e);clearTimeout(x),x=setTimeout((()=>x=void 0),250)}),this)),"number"===typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=p,this._register(f.event((e=>{this.size=e,this.layout()})))),this._register(v.event((e=>this.hoverDelay=e))),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",h),this.layout()}onPointerStart(e,t){n.zB.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const n=this.getOrthogonalSash(e);n&&(i=!0,e.__orthogonalSashEvent=!0,n.onPointerStart(e,new y(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new y(t))),!this.state)return;const o=this.el.ownerDocument.getElementsByTagName("iframe");for(const n of o)n.classList.add(w);const s=e.pageX,r=e.pageY,a=e.altKey,l={startX:s,currentX:s,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const u=(0,n.dS)(this.el),h=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":d.dz?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":d.dz?"col-resize":"ew-resize",u.textContent=`* { cursor: ${e} !important; }`},g=new c.SL;h(),i||this.onDidEnablementChange.event(h,null,g);const p=e=>{n.zB.stop(e,!1);const t={startX:s,currentX:e.pageX,startY:r,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)},f=e=>{n.zB.stop(e,!1),this.el.removeChild(u),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const t of o)t.classList.remove(w)};t.onPointerMove(p,null,g),t.onPointerUp(f,null,g),g.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((()=>e.el.classList.add("hover")),e.hoverDelay).then(void 0,(()=>{})),!t&&e.linkedSash&&C.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&C.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){C.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){var t;const i=null!==(t=e.initialTarget)&&void 0!==t?t:e.target;if(i&&i instanceof HTMLElement)return i.classList.contains("orthogonal-drag-handle")?i.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},60841:(e,t,i)=>{"use strict";i.d(t,{s$:()=>R,Io:()=>N,NB:()=>T,$Z:()=>I});var n=i(90882),o=i(2548),s=i(26090),r=i(75467),a=i(75853),l=i(9194),c=i(85398),d=i(99588);const u=11;class h extends l.${constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(this.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(this.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(this.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...d.k.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width=u+"px",this.domNode.style.height=u+"px","undefined"!==typeof e.top&&(this.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(this.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new a.C),this._register(o.mu(this.bgDomNode,o.tw.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._register(o.mu(this.domNode,o.tw.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._pointerdownRepeatTimer=this._register(new o.ne),this._pointerdownScheduleRepeatTimer=this._register(new c._F)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=()=>{this._pointerdownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24,o.Jj(e))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{}),(()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault()}}var g=i(70959);class p extends g.JT{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new c._F)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{var e;null===(e=this._domNode)||void 0===e||e.setClassName(this._visibleClassName)}),0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,null===(t=this._domNode)||void 0===t||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}var f=i(47606);const m=140;class v extends l.${constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new p(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new a.C),this._shouldRender=!0,this.domNode=(0,s.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(o.nm(this.domNode.domNode,o.tw.POINTER_DOWN,(e=>this._domNodePointerDown(e))))}_createArrow(e){const t=this._register(new h(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=(0,s.X)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof i&&this.slider.setWidth(i),"number"===typeof n&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(o.nm(this.slider.domNode,o.tw.POINTER_DOWN,(e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderPointerPosition(e);i<=o&&o<=n?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"===typeof e.offsetX&&"number"===typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{const n=o.i(this.domNode.domNode);t=e.pageX-n.left,i=e.pageY-n.top}const n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{const o=this._sliderOrthogonalPointerPosition(e),s=Math.abs(o-i);if(f.ED&&s>m)return void this._setDesiredScrollPositionNow(n.getScrollPosition());const r=this._sliderPointerPosition(e),a=r-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(a))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}var _=i(69758),b=i(8419);class y extends v{constructor(e,t,i){const n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.M(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,n.width,n.scrollWidth,o.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const e=(t.arrowSize-u)/2,i=(t.horizontalScrollbarSize-u)/2;this._createArrow({className:"scra",icon:b.l.scrollbarButtonLeft,top:i,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,1,0))}),this._createArrow({className:"scra",icon:b.l.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class w extends v{constructor(e,t,i){const n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.M(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,o.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-u)/2,i=(t.verticalScrollbarSize-u)/2;this._createArrow({className:"scra",icon:b.l.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,0,1))}),this._createArrow({className:"scra",icon:b.l.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var C=i(11271),S=i(4225);const x=500,k=50,L=!0;class E{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class N{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,n=this._rear;do{const o=n===this._front?e:Math.pow(2,-i);if(e-=o,t+=this._memory[n].score*o,n===this._front)break;n=(this._capacity+n-1)%this._capacity,i++}while(1);return t<=.5}acceptStandardWheelEvent(e){if(n.i7){const t=o.Jj(e.browserEvent),i=(0,n.ie)(t);this.accept(Date.now(),e.deltaX*i,e.deltaY*i)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){const n=new E(e,t,i);n.score=this._computeScore(n),-1===this._front&&-1===this._rear?(this._memory[0]=n,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=n)}_computeScore(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){const t=Math.abs(Math.round(e)-e);return t<.01}}N.INSTANCE=new N;class D extends l.${get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new C.Q5),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new C.Q5),e.style.overflow="hidden",this._options=A(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const n={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new w(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new y(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,s.X)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,s.X)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,s.X)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onmouseleave(this._listenOnDomNode,(e=>this._onMouseLeave(e))),this._hideTimeout=this._register(new c._F),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,g.B9)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,f.dz&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new r.q(e))}_setListeningToMouseWheel(e){const t=this._mouseWheelToDispose.length>0;if(t!==e&&(this._mouseWheelToDispose=(0,g.B9)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new r.q(e))};this._mouseWheelToDispose.push(o.nm(this._listenOnDomNode,o.tw.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){var t;if(null===(t=e.browserEvent)||void 0===t?void 0:t.defaultPrevented)return;const i=N.INSTANCE;L&&i.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let t=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&o+t===0?o=t=0:Math.abs(t)>=Math.abs(o)?o=0:t=0),this._options.flipAxes&&([t,o]=[o,t]);const s=!f.dz&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!s||o||(o=t,t=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,t*=this._options.fastScrollSensitivity);const r=this._scrollable.getFutureScrollPosition();let a={};if(t){const e=k*t,i=r.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,i)}if(o){const e=k*o,t=r.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}if(a=this._scrollable.validateScrollPosition(a),r.scrollLeft!==a.scrollLeft||r.scrollTop!==a.scrollTop){const e=L&&this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel();e?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),n=!0}}let o=n;!o&&this._options.alwaysConsumeMouseWheel&&(o=!0),!o&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(o=!0),o&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",o=t?" top":"",s=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${s}${o}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),x)}}class T extends D{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new S.Rm({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>o.jL(o.Jj(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class I extends D{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class R extends D{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new S.Rm({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>o.jL(o.Jj(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}))),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}function A(e){const t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};return t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,f.dz&&(t.className+=" mac"),t}},69758:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});const n=20;class o{constructor(e,t,i,n,o,s){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=o,this._scrollPosition=s,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new o(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,o,s){const r=Math.max(0,i-e),a=Math.max(0,r-2*t),l=o>0&&o>i;if(!l)return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(n,Math.floor(i*a/o))),d=(a-c)/(o-i),u=s*d;return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:d,computedSliderPosition:Math.round(u)}}_refreshComputedValues(){const e=o._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return t{"use strict";i.d(t,{M:()=>b,z:()=>y});var n=i(2548),o=i(9172),s=i(18612),r=i(60841),a=i(21921),l=i(60204),c=i(11271),d=i(70959),u=i(46304),h=i(4225),g=i(55455);const p={separatorBorder:l.Il.transparent};class f{set size(e){this._size=e}get size(){return this._size}get visible(){return"undefined"===typeof this._cachedVisibleSize}setVisible(e,t){var i,n;if(e!==this.visible){e?(this.size=(0,u.uZ)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"===typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{null===(n=(i=this.view).setVisible)||void 0===n||n.call(i,e)}catch(o){console.error("Splitview: Failed to set visible view"),console.error(o)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){var e;return null===(e=this.view.proportionalLayout)||void 0===e||e}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,"number"===typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t)}catch(i){console.error("Splitview: Failed to layout view"),console.error(i)}}dispose(){this.disposable.dispose()}}class m extends f{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class v extends f{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var _,b;(function(e){e[e["Idle"]=0]="Idle",e[e["Busy"]=1]="Busy"})(_||(_={})),function(e){function t(e){return{type:"split",index:e}}function i(e){return{type:"auto",index:e}}function n(e){return{type:"invisible",cachedVisibleSize:e}}e.Distribute={type:"distribute"},e.Split=t,e.Auto=i,e.Invisible=n}(b||(b={}));class y extends d.JT{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={}){var i,s,a,l,d;super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=_.Idle,this._onDidSashChange=this._register(new c.Q5),this._onDidSashReset=this._register(new c.Q5),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=null!==(i=t.orientation)&&void 0!==i?i:0,this.inverseAltBehavior=null!==(s=t.inverseAltBehavior)&&void 0!==s&&s,this.proportionalLayout=null===(a=t.proportionalLayout)||void 0===a||a,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=(0,n.R3)(this.el,(0,n.$)(".sash-container")),this.viewContainer=(0,n.$)(".split-view-container"),this.scrollable=this._register(new h.Rm({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>(0,n.jL)((0,n.Jj)(this.el),e)})),this.scrollableElement=this._register(new r.$Z(this.viewContainer,{vertical:0===this.orientation?null!==(l=t.scrollbarVisibility)&&void 0!==l?l:1:2,horizontal:1===this.orientation?null!==(d=t.scrollbarVisibility)&&void 0!==d?d:1:2},this.scrollable));const u=this._register(new o.Y(this.viewContainer,"scroll")).event;this._register(u((e=>{const t=this.scrollableElement.getScrollPosition(),i=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,n=Math.abs(this.viewContainer.scrollTop-t.scrollTop)<=1?void 0:this.viewContainer.scrollTop;void 0===i&&void 0===n||this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:n})}))),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)}))),(0,n.R3)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||p),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=g.o8(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},n=e.view;this.doAddView(n,i,t,!0)})),this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let t=0;for(let i=0;i0&&(n.size=(0,u.uZ)(Math.round(o*e/t),n.minimumSize,n.maximumSize))}}else{const t=(0,a.w6)(this.viewItems.length),n=t.filter((e=>1===this.viewItems[e].priority)),o=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,n,o)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map((e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0)))}onSashStart({sash:e,start:t,alt:i}){for(const n of this.viewItems)n.enabled=!1;const o=this.sashItems.findIndex((t=>t.sash===e)),s=(0,d.F8)((0,n.nm)(this.el.ownerDocument.body,"keydown",(e=>r(this.sashDragState.current,e.altKey))),(0,n.nm)(this.el.ownerDocument.body,"keyup",(()=>r(this.sashDragState.current,!1)))),r=(e,t)=>{const i=this.viewItems.map((e=>e.size));let n,r,l=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){const e=o===this.sashItems.length-1;if(e){const e=this.viewItems[o];l=(e.minimumSize-e.size)/2,c=(e.maximumSize-e.size)/2}else{const e=this.viewItems[o+1];l=(e.size-e.maximumSize)/2,c=(e.size-e.minimumSize)/2}}if(!t){const e=(0,a.w6)(o,-1),t=(0,a.w6)(o+1,this.viewItems.length),s=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),l=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),c=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),d=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),u=Math.max(s,d),h=Math.min(c,l),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"===typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);n={index:g,limitDelta:e.visible?u-t:u+t,size:e.size}}if("number"===typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);r={index:p,limitDelta:e.visible?h+t:h-t,size:e.size}}}this.sashDragState={start:e,current:e,index:o,sizes:i,minDelta:l,maxDelta:c,alt:t,snapBefore:n,snapAfter:r,disposable:s}};r(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:o,minDelta:s,maxDelta:r,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e;const c=e-i,d=this.resize(t,c,n,void 0,void 0,s,r,a,l);if(o){const e=t===this.sashItems.length-1,i=this.viewItems.map((e=>e.size)),n=e?t:t+1,o=this.viewItems[n],s=o.size-o.maximumSize,r=o.size-o.minimumSize,a=e?t-1:t+1;this.resize(a,-d,i,void 0,void 0,s,r)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=(0,u.uZ)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==_.Idle)throw new Error("Cant modify splitview");this.state=_.Busy;try{const i=(0,a.w6)(this.viewItems.length).filter((t=>t!==e)),n=[...i.filter((e=>1===this.viewItems[e].priority)),e],o=i.filter((e=>2===this.viewItems[e].priority)),s=this.viewItems[e];t=Math.round(t),t=(0,u.uZ)(t,s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(n,o)}finally{this.state=_.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const r of this.viewItems)r.maximumSize-r.minimumSize>0&&(e.push(r),t+=r.size);const i=Math.floor(t/e.length);for(const r of e)r.size=(0,u.uZ)(i,r.minimumSize,r.maximumSize);const n=(0,a.w6)(this.viewItems.length),o=n.filter((e=>1===this.viewItems[e].priority)),s=n.filter((e=>2===this.viewItems[e].priority));this.relayout(o,s)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,o){if(this.state!==_.Idle)throw new Error("Cant modify splitview");this.state=_.Busy;try{const r=(0,n.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(r):this.viewContainer.insertBefore(r,this.viewContainer.children.item(i));const l=e.onDidChange((e=>this.onViewChange(p,e))),u=(0,d.OF)((()=>this.viewContainer.removeChild(r))),h=(0,d.F8)(l,u);let g;"number"===typeof t?g=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),g="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);const p=0===this.orientation?new m(r,e,g,h):new v(r,e,g,h);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){const e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new s.g(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new s.g(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),n=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),o=c.ju.map(t.onDidStart,n),r=o(this.onSashStart,this),l=c.ju.map(t.onDidChange,n),u=l(this.onSashChange,this),h=c.ju.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),g=h(this.onSashEnd,this),p=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,a.w6)(e,-1),n=(0,a.w6)(e+1,this.viewItems.length),o=this.findFirstSnapIndex(i),s=this.findFirstSnapIndex(n);("number"!==typeof o||this.viewItems[o].visible)&&("number"!==typeof s||this.viewItems[s].visible)&&this._onDidSashReset.fire(e)})),f=(0,d.F8)(r,u,g,p,t),m={sash:t,disposable:f};this.sashItems.splice(i-1,0,m)}let f;r.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(f=[t.index]),o||this.relayout([i],f),o||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()}finally{this.state=_.Idle}}relayout(e,t){const i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map((e=>e.size)),n,o,s=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY,l,c){if(e<0||e>=this.viewItems.length)return 0;const d=(0,a.w6)(e,-1),h=(0,a.w6)(e+1,this.viewItems.length);if(o)for(const u of o)(0,a.zI)(d,u),(0,a.zI)(h,u);if(n)for(const u of n)(0,a.al)(d,u),(0,a.al)(h,u);const g=d.map((e=>this.viewItems[e])),p=d.map((e=>i[e])),f=h.map((e=>this.viewItems[e])),m=h.map((e=>i[e])),v=d.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),_=d.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),b=0===h.length?Number.POSITIVE_INFINITY:h.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),y=0===h.length?Number.NEGATIVE_INFINITY:h.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),w=Math.max(v,y,s),C=Math.min(b,_,r);let S=!1;if(l){const e=this.viewItems[l.index],i=t>=l.limitDelta;S=i!==e.visible,e.setVisible(i,l.size)}if(!S&&c){const e=this.viewItems[c.index],i=te+t.size),0);let i=this.size-t;const n=(0,a.w6)(this.viewItems.length-1,-1),o=n.filter((e=>1===this.viewItems[e].priority)),s=n.filter((e=>2===this.viewItems[e].priority));for(const r of s)(0,a.zI)(n,r);for(const r of o)(0,a.al)(n,r);"number"===typeof e&&(0,a.al)(n,e);for(let r=0;0!==i&&re+t.size),0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),n=[...this.viewItems].reverse();e=!1;const o=n.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const s=n.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let r=0;for(let l=0;l0||this.startSnappingEnabled)?e.state=1:u&&t[l]&&(r0)return;if(!e.visible&&e.snap)return t}}areViewsDistributed(){let e,t;for(const i of this.viewItems)if(e=void 0===e?i.size:Math.min(e,i.size),t=void 0===t?i.size:Math.max(t,i.size),t-e>2)return!1;return!0}dispose(){var e;null===(e=this.sashDragState)||void 0===e||e.disposable.dispose(),(0,d.B9)(this.viewItems),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[],super.dispose()}}},5506:(e,t,i)=>{"use strict";i.d(t,{D:()=>l,Z:()=>c});var n=i(9194),o=i(99588),s=i(11271),r=i(6674),a=i(11030);const l={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class c extends n.${constructor(e){super(),this._onChange=this._register(new s.Q5),this.onChange=this._onChange.event,this._onKeyDown=this._register(new s.Q5),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...o.k.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register((0,r.g)((0,a.t)("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...t),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,(e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())})),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,(e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();this._onKeyDown.fire(e)}))}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},9194:(e,t,i)=>{"use strict";i.d(t,{$:()=>l});var n=i(2548),o=i(45429),s=i(75467),r=i(1212),a=i(70959);class l extends a.JT{onclick(e,t){this._register(n.nm(e,n.tw.CLICK,(i=>t(new s.n(n.Jj(e),i)))))}onmousedown(e,t){this._register(n.nm(e,n.tw.MOUSE_DOWN,(i=>t(new s.n(n.Jj(e),i)))))}onmouseover(e,t){this._register(n.nm(e,n.tw.MOUSE_OVER,(i=>t(new s.n(n.Jj(e),i)))))}onmouseleave(e,t){this._register(n.nm(e,n.tw.MOUSE_LEAVE,(i=>t(new s.n(n.Jj(e),i)))))}onkeydown(e,t){this._register(n.nm(e,n.tw.KEY_DOWN,(e=>t(new o.y(e)))))}onkeyup(e,t){this._register(n.nm(e,n.tw.KEY_UP,(e=>t(new o.y(e)))))}oninput(e,t){this._register(n.nm(e,n.tw.INPUT,t))}onblur(e,t){this._register(n.nm(e,n.tw.BLUR,t))}onfocus(e,t){this._register(n.nm(e,n.tw.FOCUS,t))}ignoreGesture(e){return r.o.ignoreTarget(e)}}},36606:(e,t,i)=>{"use strict";function n(e,t){const i=e;"number"!==typeof i.vscodeWindowId&&Object.defineProperty(i,"vscodeWindowId",{get:()=>t})}i.d(t,{Ex:()=>o,HA:()=>n,vO:()=>s});const o=window,s=o},10205:(e,t,i)=>{"use strict";i.d(t,{Wi:()=>a,Z0:()=>l,aU:()=>r,eZ:()=>d,wY:()=>c,xw:()=>u});var n=i(11271),o=i(70959),s=i(25206);class r extends o.JT{constructor(e,t="",i="",o=!0,s){super(),this._onDidChange=this._register(new n.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=o,this._actionCallback=s}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class a extends o.JT{constructor(){super(...arguments),this._onWillRun=this._register(new n.Q5),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new n.Q5),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;let i;this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class l{constructor(){this.id=l.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t=t.length?[...t,new l,...i]:i);return t}async run(){}}l.ID="vs.actions.separator";class c{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class d extends r{constructor(){super(d.ID,s.NC("submenu.empty","(empty)"),void 0,!1)}}function u(e){var t;return{id:e.id,label:e.label,class:e.class,enabled:null===(t=e.enabled)||void 0===t||t,checked:e.checked,run:async(...t)=>e.run(...t),tooltip:e.label}}d.ID="vs.actions.empty"},21921:(e,t,i)=>{"use strict";function n(e,t=0){return e[e.length-(1+t)]}function o(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function s(e,t,i=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0,o=e.length;ni(e[n],t)))}function l(e,t){let i=0,n=e-1;while(i<=n){const e=(i+n)/2|0,o=t(e);if(o<0)i=e+1;else{if(!(o>0))return e;n=e-1}}return-(i+1)}function c(e,t,i){if(e|=0,e>=t.length)throw new TypeError("invalid index");const n=t[Math.floor(t.length*Math.random())],o=[],s=[],r=[];for(const a of t){const e=i(a,n);e<0?o.push(a):e>0?s.push(a):r.push(a)}return e!!e))}function f(e){let t=0;for(let i=0;i0}function _(e,t=(e=>e)){const i=new Set;return e.filter((e=>{const n=t(e);return!i.has(n)&&(i.add(n),!0)}))}function b(e,t){return e.length>0?e[0]:t}function y(e,t){let i="number"===typeof t?e:0;"number"===typeof t?i=e:(i=0,t=e);const n=[];if(i<=t)for(let o=i;ot;o--)n.push(o);return n}function w(e,t,i){const n=e.slice(0,t),o=e.slice(t);return n.concat(i,o)}function C(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function S(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function x(e,t){for(const i of t)e.push(i)}function k(e){return Array.isArray(e)?e:[e]}function L(e,t,i){const n=N(e,t),o=e.length,s=i.length;e.length=o+s;for(let r=o-1;r>=n;r--)e[r+s]=e[r];for(let r=0;rt(e(i),e(n))}function I(...e){return(t,i)=>{for(const n of e){const e=n(t,i);if(!D.isNeitherLessOrGreaterThan(e))return e}return D.neitherLessOrGreaterThan}}i.d(t,{BV:()=>O,EB:()=>_,Gb:()=>n,H9:()=>P,HW:()=>c,JH:()=>o,KO:()=>g,LS:()=>r,Of:()=>v,Rs:()=>f,W$:()=>M,XY:()=>m,Xh:()=>b,Zv:()=>w,_2:()=>k,al:()=>S,db:()=>E,fS:()=>s,f_:()=>I,fv:()=>R,kX:()=>p,mw:()=>u,nW:()=>A,ry:()=>a,tT:()=>T,vA:()=>x,vM:()=>d,w6:()=>y,zI:()=>C,zy:()=>h}),function(e){function t(e){return e<0}function i(e){return e<=0}function n(e){return e>0}function o(e){return 0===e}e.isLessThan=t,e.isLessThanOrEqual=i,e.isGreaterThan=n,e.isNeitherLessOrGreaterThan=o,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(D||(D={}));const R=(e,t)=>e-t,A=(e,t)=>R(e?1:0,t?1:0);function O(e){return(t,i)=>-e(t,i)}class P{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;while(t=0&&e(this.items[t]))t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class M{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new M((t=>this.iterate((i=>!e(i)||t(i)))))}map(e){return new M((t=>this.iterate((i=>t(e(i))))))}findLast(e){let t;return this.iterate((i=>(e(i)&&(t=i),!0))),t}findLastMaxBy(e){let t,i=!0;return this.iterate((n=>((i||D.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0))),t}}M.empty=new M((e=>{}))},75912:(e,t,i)=>{"use strict";function n(e,t,i){const n=o(e,t);if(-1!==n)return e[n]}function o(e,t,i=e.length-1){for(let n=i;n>=0;n--){const i=e[n];if(t(i))return n}return-1}function s(e,t){const i=r(e,t);return-1===i?void 0:e[i]}function r(e,t,i=0,n=e.length){let o=i,s=n;while(op,J_:()=>l,Jw:()=>r,Ph:()=>h,b1:()=>c,cn:()=>a,dF:()=>n,dI:()=>d,jV:()=>u,tQ:()=>g,ti:()=>s});class c{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(c.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=r(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function d(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n0&&(i=o)}return i}function u(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n=0&&(i=o)}return i}function h(e,t){return d(e,((e,i)=>-t(e,i)))}function g(e,t){if(0===e.length)return-1;let i=0;for(let n=1;n0&&(i=n)}return i}function p(e,t){for(const i of e){const e=t(i);if(void 0!==e)return e}}c.assertInvariants=!1},65662:(e,t,i)=>{"use strict";i.d(t,{DM:()=>l,eZ:()=>a,ok:()=>o,vE:()=>s,wN:()=>r});var n=i(98642);function o(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function r(e){e||(0,n.dL)(new n.he("Soft Assertion Failed"))}function a(e){e()||(e(),(0,n.dL)(new n.he("Assertion Failed")))}function l(e,t){let i=0;while(i{"use strict";i.d(t,{Aq:()=>D,CR:()=>E,J8:()=>c,PG:()=>d,Ps:()=>b,R5:()=>L,Vg:()=>_,Vs:()=>v,_F:()=>y,eP:()=>u,hF:()=>k,jT:()=>N,jg:()=>S,pY:()=>C,rH:()=>m,vp:()=>f,y5:()=>x,zS:()=>I,zh:()=>w});var n=i(55191),o=i(98642),s=i(11271),r=i(70959),a=i(47606),l=i(65338);function c(e){return!!e&&"function"===typeof e.then}function d(e){const t=new n.A,i=e(t.token),s=new Promise(((e,n)=>{const s=t.token.onCancellationRequested((()=>{s.dispose(),n(new o.FU)}));Promise.resolve(i).then((i=>{s.dispose(),t.dispose(),e(i)}),(e=>{s.dispose(),t.dispose(),n(e)}))}));return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return s.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return s.finally(e)}}}function u(e,t,i){return new Promise(((n,o)=>{const s=t.onCancellationRequested((()=>{s.dispose(),n(i)}));e.then(n,o).finally((()=>s.dispose()))}))}class h{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{if(this.queuedPromise=null,this.isDisposed)return;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}dispose(){this.isDisposed=!0}}const g=(e,t)=>{let i=!0;const n=setTimeout((()=>{i=!1,t()}),e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}},p=e=>{let t=!0;return queueMicrotask((()=>{t&&(t=!1,e())})),{isTriggered:()=>t,dispose:()=>{t=!1}}};class f{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})));const i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===l.n?p(i):g(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new o.FU),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class m{constructor(e){this.delayer=new f(e),this.throttler=new h}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function v(e,t){return t?new Promise(((i,n)=>{const s=setTimeout((()=>{r.dispose(),i()}),e),r=t.onCancellationRequested((()=>{clearTimeout(s),r.dispose(),n(new o.FU)}))})):d((t=>v(e,t)))}function _(e,t=0,i){const n=setTimeout((()=>{e(),i&&o.dispose()}),t),o=(0,r.OF)((()=>{clearTimeout(n),null===i||void 0===i||i.deleteAndLeak(o)}));return null===i||void 0===i||i.add(o),o}function b(e,t=(e=>!!e),i=null){let n=0;const o=e.length,s=()=>{if(n>=o)return Promise.resolve(i);const r=e[n++],a=Promise.resolve(r());return a.then((e=>t(e)?Promise.resolve(e):s()))};return s()}class y{constructor(e,t){this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class w{constructor(){this.disposable=void 0}cancel(){var e;null===(e=this.disposable)||void 0===e||e.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){this.cancel();const n=i.setInterval((()=>{e()}),t);this.disposable=(0,r.OF)((()=>{i.clearInterval(n),this.disposable=void 0}))}dispose(){this.cancel()}}class C{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}let S,x;(function(){x="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a.fn)((()=>{if(i)return;const e=Date.now()+15,n={didTimeout:!0,timeRemaining(){return Math.max(0,e-Date.now())}};t(Object.freeze(n))}));let i=!1;return{dispose(){i||(i=!0)}}}:(e,t,i)=>{const n=e.requestIdleCallback(t,"number"===typeof i?{timeout:i}:void 0);let o=!1;return{dispose(){o||(o=!0,e.cancelIdleCallback(n))}}},S=e=>x(globalThis,e)})();class k{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=x(e,(()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class L extends k{constructor(e){super(globalThis,e)}}class E{get isRejected(){var e;return 1===(null===(e=this.outcome)||void 0===e?void 0:e.outcome)}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise(((e,t)=>{this.completeCallback=e,this.errorCallback=t}))}complete(e){return new Promise((t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()}))}error(e){return new Promise((t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()}))}cancel(){return this.error(new o.FU)}}var N;(function(e){async function t(e){let t;const i=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return i}function i(e){return new Promise((async(t,i)=>{try{await e(t,i)}catch(n){i(n)}}))}e.settled=t,e.withAsyncBody=i})(N||(N={}));class D{static fromArray(e){return new D((t=>{t.emitMany(e)}))}static fromPromise(e){return new D((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new D((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new D((async t=>{await Promise.all(e.map((async e=>{for await(const i of e)t.emitOne(i)})))}))}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new s.Q5,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(2===this._state)throw this._error;if(e{for await(const n of e)i.emitOne(t(n))}))}map(e){return D.map(this,e)}static filter(e,t){return new D((async i=>{for await(const n of e)t(n)&&i.emitOne(n)}))}filter(e){return D.filter(this,e)}static coalesce(e){return D.filter(e,(e=>!!e))}coalesce(){return D.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return D.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}D.EMPTY=D.fromArray([]);class T extends D{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function I(e){const t=new n.A,i=e(t.token);return new T(t,(async e=>{const n=t.token.onCancellationRequested((()=>{n.dispose(),t.dispose(),e.reject(new o.FU)}));try{for await(const n of i){if(t.token.isCancellationRequested)return;e.emitOne(n)}n.dispose(),t.dispose()}catch(s){n.dispose(),t.dispose(),e.reject(s)}}))}},80356:(e,t,i)=>{"use strict";i.d(t,{Ag:()=>c,Cg:()=>h,KN:()=>r,Q$:()=>u,T4:()=>d,mP:()=>a,oq:()=>l});var n=i(21815);const o="undefined"!==typeof Buffer;new n.o((()=>new Uint8Array(256)));let s;class r{static wrap(e){return o&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new r(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return o?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function l(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function c(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function d(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function u(e,t){return e[t]}function h(e,t,i){e[i]=t}},60857:(e,t,i)=>{"use strict";i.d(t,{b:()=>o,t:()=>n});class n{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}class o{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const t=this.fn(e);return this._map.set(e,t),t}}},55191:(e,t,i)=>{"use strict";i.d(t,{A:()=>a,T:()=>s});var n=i(11271);const o=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var s;(function(e){function t(t){return t===e.None||t===e.Cancelled||(t instanceof r||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.ju.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o})})(s||(s={}));class r{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new n.Q5),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new r),this._token}cancel(){this._token?this._token instanceof r&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof r&&this._token.dispose():this._token=s.None}}},8419:(e,t,i)=>{"use strict";i.d(t,{l:()=>a,u:()=>r});var n=i(55455);const o=Object.create(null);function s(e,t){if((0,n.HD)(t)){const i=o[t];if(void 0===i)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return o[e]=t,{id:e}}function r(){return o}const a={add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),gitPullRequestLabel:s("git-pull-request-label",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugBreakpointPending:s("debug-breakpoint-pending",60377),debugHint:s("debug-hint",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),dropDownButton:s("drop-down-button",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circle:s("circle",60092),circleOutline:s("circle-outline",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),compareChanges:s("compare-changes",60157),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueClosed:s("issue-closed",60324),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),bracket:s("bracket",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolCustomColor:s("symbol-customcolor",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),debugAlt:s("debug-alt",60305),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),exportIcon:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnspecified:s("workspace-unspecified",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newLine:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),heartFilled:s("heart-filled",60420),map:s("map",60421),mapFilled:s("map-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),gitFetch:s("git-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),runAllCoverage:s("run-all-coverage",60461),runCoverage:s("run-all-coverage",60460),coverage:s("coverage",60462),githubProject:s("github-project",60463),dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left")}},22237:(e,t,i)=>{"use strict";function n(e,t){const i=[],n=[];for(const o of e)t.has(o)||i.push(o);for(const o of t)e.has(o)||n.push(o);return{removed:i,added:n}}function o(e,t){const i=new Set;for(const n of t)e.has(n)&&i.add(n);return i}i.d(t,{j:()=>o,q:()=>n})},60204:(e,t,i)=>{"use strict";function n(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{Il:()=>a,Oz:()=>s,VS:()=>o,tx:()=>r});class o{constructor(e,t,i,o=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class s{constructor(e,t,i,o){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.l=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=e.a,r=Math.max(t,i,n),a=Math.min(t,i,n);let l=0,c=0;const d=(a+r)/2,u=r-a;if(u>0){switch(c=Math.min(d<=.5?u/(2*d):u/(2-2*d),1),r){case t:l=(i-n)/u+(i1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:n,a:r}=e;let a,l,c;if(0===i)a=l=c=n;else{const e=n<.5?n*(1+i):n+i-n*i,o=2*n-e;a=s._hue2rgb(o,e,t+1/3),l=s._hue2rgb(o,e,t),c=s._hue2rgb(o,e,t-1/3)}return new o(Math.round(255*a),Math.round(255*l),Math.round(255*c),r)}}class r{constructor(e,t,i,o){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.v=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=Math.max(t,i,n),s=Math.min(t,i,n),a=o-s,l=0===o?0:a/o;let c;return c=0===a?0:o===t?((i-n)/a%6+6)%6:o===i?(n-t)/a+2:(t-i)/a+4,new r(Math.round(60*c),l,o,e.a)}static toRGBA(e){const{h:t,s:i,v:n,a:s}=e,r=n*i,a=r*(1-Math.abs(t/60%2-1)),l=n-r;let[c,d,u]=[0,0,0];return t<60?(c=r,d=a):t<120?(c=a,d=r):t<180?(d=r,u=a):t<240?(d=a,u=r):t<300?(c=a,u=r):t<=360&&(c=r,u=a),c=Math.round(255*(c+l)),d=Math.round(255*(d+l)),u=Math.round(255*(u+l)),new o(c,d,u,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:r.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof o)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof r))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=r.toRGBA(e)}}equals(e){return!!e&&o.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&r.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=a._relativeLuminanceForComponent(this.rgba.r),t=a._relativeLuminanceForComponent(this.rgba.g),i=a._relativeLuminanceForComponent(this.rgba.b),o=.2126*e+.7152*t+.0722*i;return n(o,4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){const e=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3;return e>=128}isLighterThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t>i}isDarkerThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t{"use strict";i.d(t,{Hl:()=>l,Ix:()=>a,SN:()=>d,Z0:()=>h,ZO:()=>r});var n=i(21921),o=i(39595),s=i(7091);function r(e){return{asString:async()=>e,asFile:()=>{},value:"string"===typeof e?e:void 0}}function a(e,t,i){const n={id:(0,s.R)(),name:e,uri:t,data:i};return{asString:async()=>"",asFile:()=>n,value:void 0}}class l{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return o.$.some(this,(([e,t])=>t.asFile()))&&t.push("files"),u(c(e),t)}get(e){var t;return null===(t=this._entries.get(this.toKey(e)))||void 0===t?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return c(e)}}function c(e){return e.toLowerCase()}function d(e,t){return u(c(e),t.map(c))}function u(e,t){if("*/*"===e)return t.length>0;if(t.includes(e))return!0;const i=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[n,o,s]=i;return"*"===s&&t.some((e=>e.startsWith(o+"/")))}const h=Object.freeze({create:e=>(0,n.EB)(e.map((e=>e.toString()))).join("\r\n"),split:e=>e.split("\r\n"),parse:e=>h.split(e).filter((e=>!e.startsWith("#")))})},58718:(e,t,i)=>{"use strict";function n(e,t,i){let n=null,o=null;if("function"===typeof i.value?(n="value",o=i.value,0!==o.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof i.get&&(n="get",o=i.get),!o)throw new Error("not supported");const s=`$memoize$${t}`;i[n]=function(...e){return this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!1,enumerable:!1,writable:!1,value:o.apply(this,e)}),this[s]}}i.d(t,{H:()=>n})},88994:(e,t,i)=>{"use strict";i.d(t,{Hs:()=>d,a$:()=>r});class n{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var o=i(63381);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new n(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class d{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,o,s]=d._getElements(e),[r,a,l]=d._getElements(t);this._hasStrings=s&&l,this._originalStringElements=n,this._originalElementsOrHash=o,this._modifiedStringElements=r,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(d._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,n=t.length;i=e&&o>=i&&this.ElementsAreEqual(t,o))t--,o--;if(e>t||i>o){let s;return i<=o?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new n(e,0,i,o-i+1)]):e<=t?(a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),s=[new n(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const r=[0],l=[0],c=this.ComputeRecursionPoint(e,t,i,o,r,l,s),d=r[0],u=l[0];if(null!==c)return c;if(!s[0]){const r=this.ComputeDiffRecursive(e,d,i,u,s);let a=[];return a=s[0]?[new n(d+1,t-(d+1)+1,u+1,o-(u+1)+1)]:this.ComputeDiffRecursive(d+1,t,u+1,o,s),this.ConcatenateChanges(r,a)}return[new n(e,t-e+1,i,o-i+1)]}WALKTRACE(e,t,i,o,s,r,a,l,d,u,h,g,p,f,m,v,_,b){let y=null,w=null,C=new c,S=t,x=i,k=p[0]-v[0]-o,L=-1073741824,E=this.m_forwardHistory.length-1;do{const t=k+e;t===S||t=0&&(d=this.m_forwardHistory[E],e=d[0],S=1,x=d.length-1)}while(--E>=-1);if(y=C.getReverseChanges(),b[0]){let e=p[0]+1,t=v[0]+1;if(null!==y&&y.length>0){const i=y[y.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}w=[new n(e,g-e+1,t,m-t+1)]}else{C=new c,S=r,x=a,k=p[0]-v[0]-l,L=1073741824,E=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=k+s;e===S||e=u[e+1]?(h=u[e+1]-1,f=h-k-l,h>L&&C.MarkNextChange(),L=h+1,C.AddOriginalElement(h+1,f+1),k=e+1-s):(h=u[e-1],f=h-k-l,h>L&&C.MarkNextChange(),L=h,C.AddModifiedElement(h+1,f+1),k=e-1-s),E>=0&&(u=this.m_reverseHistory[E],s=u[0],S=1,x=u.length-1)}while(--E>=-1);w=C.getChanges()}return this.ConcatenateChanges(y,w)}ComputeRecursionPoint(e,t,i,o,s,r,a){let c=0,d=0,u=0,h=0,g=0,p=0;e--,i--,s[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(o-i),m=f+1,v=new Int32Array(m),_=new Int32Array(m),b=o-i,y=t-e,w=e-i,C=t-o,S=y-b,x=S%2===0;v[b]=e,_[y]=t,a[0]=!1;for(let k=1;k<=f/2+1;k++){let f=0,S=0;u=this.ClipDiagonalBound(b-k,k,b,m),h=this.ClipDiagonalBound(b+k,k,b,m);for(let e=u;e<=h;e+=2){c=e===u||ef+S&&(f=c,S=d),!x&&Math.abs(e-y)<=k-1&&c>=_[e])return s[0]=c,r[0]=d,i<=_[e]&&k<=1448?this.WALKTRACE(b,u,h,w,y,g,p,C,v,_,c,t,s,d,o,r,x,a):null}const L=(f-e+(S-i)-k)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,L))return a[0]=!0,s[0]=f,r[0]=S,L>0&&k<=1448?this.WALKTRACE(b,u,h,w,y,g,p,C,v,_,c,t,s,d,o,r,x,a):(e++,i++,[new n(e,t-e+1,i,o-i+1)]);g=this.ClipDiagonalBound(y-k,k,y,m),p=this.ClipDiagonalBound(y+k,k,y,m);for(let n=g;n<=p;n+=2){c=n===g||n=_[n+1]?_[n+1]-1:_[n-1],d=c-(n-y)-C;const l=c;while(c>e&&d>i&&this.ElementsAreEqual(c,d))c--,d--;if(_[n]=c,x&&Math.abs(n-b)<=k&&c<=v[n])return s[0]=c,r[0]=d,l>=v[n]&&k<=1448?this.WALKTRACE(b,u,h,w,y,g,p,C,v,_,c,t,s,d,o,r,x,a):null}if(k<=1447){let e=new Int32Array(h-u+2);e[0]=b-u+1,l.Copy2(v,u,e,1,h-u+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=y-g+1,l.Copy2(_,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,u,h,w,y,g,p,C,v,_,c,t,s,d,o,r,x,a)}PrettifyChanges(e){for(let t=0;t0,r=i.modifiedLength>0;while(i.originalStart+i.originalLength=0;t--){const i=e[t];let n=0,o=0;if(t>0){const i=e[t-1];n=i.originalStart+i.originalLength,o=i.modifiedStart+i.modifiedLength}const s=i.originalLength>0,r=i.modifiedLength>0;let a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,c=i.modifiedStart-e;if(tl&&(l=u,a=e)}i.originalStart-=a,i.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,i=e.length;t0&&t>a&&(a=t,l=d,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let o=0;o=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){const o=this._OriginalRegionIsBoundary(e,t)?1:0,s=this._ModifiedRegionIsBoundary(i,n)?1:0;return o+s}ConcatenateChanges(e,t){const i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return l.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],l.Copy(t,1,n,e.length,t.length-1),n}{const i=new Array(e.length+t.length);return l.Copy(e,0,i,0,e.length),l.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const o=e.originalStart;let s=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new n(o,s,r,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&e{"use strict";i.d(t,{B8:()=>p,Cp:()=>r,F0:()=>u,FU:()=>d,L6:()=>g,b1:()=>h,dL:()=>s,he:()=>m,n2:()=>c,ri:()=>a});class n{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(f.isErrorNoTelemetry(e))throw new f(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const o=new n;function s(e){c(e)||o.onUnexpectedError(e)}function r(e){c(e)||o.onUnexpectedExternalError(e)}function a(e){if(e instanceof Error){const{name:t,message:i}=e,n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:i,stack:n,noTelemetry:f.isErrorNoTelemetry(e)}}return e}const l="Canceled";function c(e){return e instanceof d||e instanceof Error&&e.name===l&&e.message===l}class d extends Error{constructor(){super(l),this.name=this.message}}function u(){const e=new Error(l);return e.name=e.message,e}function h(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function g(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class p extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class f extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof f)return e;const t=new f;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},11271:(e,t,i)=>{"use strict";i.d(t,{D0:()=>C,E7:()=>k,K3:()=>w,Q5:()=>_,SZ:()=>S,Sp:()=>b,ZD:()=>L,ju:()=>d,z5:()=>x});var n=i(98642),o=i(81332),s=i(70959),r=i(33010),a=i(96729);const l=!1,c=!1;var d;(function(e){function t(e){if(c){const{onDidAddListener:t}=e,i=p.create();let n=0;e.onDidAddListener=()=>{2===++n&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),i.print()),null===t||void 0===t||t()}}}function i(e,t){return f(e,(()=>{}),0,void 0,!0,void 0,t)}function n(e){return(t,i=null,n)=>{let o,s=!1;return o=e((e=>{if(!s)return o?o.dispose():s=!0,t.call(i,e)}),null,n),s&&o.dispose(),o}}function o(e,t,i){return h(((i,n=null,o)=>e((e=>i.call(n,t(e))),null,o)),i)}function r(e,t,i){return h(((i,n=null,o)=>e((e=>{t(e),i.call(n,e)}),null,o)),i)}function a(e,t,i){return h(((i,n=null,o)=>e((e=>t(e)&&i.call(n,e)),null,o)),i)}function l(e){return e}function d(...e){return(t,i=null,n)=>{const o=(0,s.F8)(...e.map((e=>e((e=>t.call(i,e))))));return g(o,n)}}function u(e,t,i,n){let s=i;return o(e,(e=>(s=t(s,e),s)),n)}function h(e,i){let n;const o={onWillAddFirstListener(){n=e(s.fire,s)},onDidRemoveLastListener(){null===n||void 0===n||n.dispose()}};i||t(o);const s=new _(o);return null===i||void 0===i||i.add(s),s.event}function g(e,t){return t instanceof Array?t.push(e):t&&t.add(e),e}function f(e,i,n=100,o=!1,s=!1,r,a){let l,c,d,u,h=0;const g={leakWarningThreshold:r,onWillAddFirstListener(){l=e((e=>{h++,c=i(c,e),o&&!d&&(p.fire(c),c=void 0),u=()=>{const e=c;c=void 0,d=void 0,(!o||h>1)&&p.fire(e),h=0},"number"===typeof n?(clearTimeout(d),d=setTimeout(u,n)):void 0===d&&(d=0,queueMicrotask(u))}))},onWillRemoveListener(){s&&h>0&&(null===u||void 0===u||u())},onDidRemoveLastListener(){u=void 0,l.dispose()}};a||t(g);const p=new _(g);return null===a||void 0===a||a.add(p),p.event}function m(t,i=0,n){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),i,void 0,!0,void 0,n)}function v(e,t=((e,t)=>e===t),i){let n,o=!0;return a(e,(e=>{const i=o||!t(e,n);return o=!1,n=e,i}),i)}function b(t,i,n){return[e.filter(t,i,n),e.filter(t,(e=>!i(e)),n)]}function y(e,t=!1,i=[],n){let o=i.slice(),s=e((e=>{o?o.push(e):a.fire(e)}));n&&n.add(s);const r=()=>{null===o||void 0===o||o.forEach((e=>a.fire(e))),o=null},a=new _({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),n&&n.add(s))},onDidAddFirstListener(){o&&(t?setTimeout(r):r())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return n&&n.add(a),a.event}function w(e,t){const i=(i,n,o)=>{const s=t(new S);return e((function(e){const t=s.evaluate(e);t!==C&&i.call(n,t)}),void 0,o)};return i}e.None=()=>s.JT.None,e.defer=i,e.once=n,e.map=o,e.forEach=r,e.filter=a,e.signal=l,e.any=d,e.reduce=u,e.debounce=f,e.accumulate=m,e.latch=v,e.split=b,e.buffer=y,e.chain=w;const C=Symbol("HaltChainable");class S{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:C)),this}reduce(e,t){let i=t;return this.steps.push((t=>(i=e(i,t),i))),this}latch(e=((e,t)=>e===t)){let t,i=!0;return this.steps.push((n=>{const o=i||!e(n,t);return i=!1,t=n,o?n:C})),this}evaluate(e){for(const t of this.steps)if(e=t(e),e===C)break;return e}}function x(e,t,i=(e=>e)){const n=(...e)=>r.fire(i(...e)),o=()=>e.on(t,n),s=()=>e.removeListener(t,n),r=new _({onWillAddFirstListener:o,onDidRemoveLastListener:s});return r.event}function k(e,t,i=(e=>e)){const n=(...e)=>r.fire(i(...e)),o=()=>e.addEventListener(t,n),s=()=>e.removeEventListener(t,n),r=new _({onWillAddFirstListener:o,onDidRemoveLastListener:s});return r.event}function L(e){return new Promise((t=>n(e)(t)))}function E(e){const t=new _;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event}function N(e,t,i){return t(i),e((e=>t(e)))}e.fromNodeEventEmitter=x,e.fromDOMEventEmitter=k,e.toPromise=L,e.fromPromise=E,e.runAndSubscribe=N;class D{constructor(e,i){this._observable=e,this._counter=0,this._hasChanged=!1;const n={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};i||t(n),this.emitter=new _(n),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function T(e,t){const i=new D(e,t);return i.emitter.event}function I(e){return(t,i,n)=>{let o=0,r=!1;const a={beginUpdate(){o++},endUpdate(){o--,0===o&&(e.reportChanges(),r&&(r=!1,t.call(i)))},handlePossibleChange(){},handleChange(){r=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return n instanceof s.SL?n.add(l):Array.isArray(n)&&n.push(l),l}}e.fromObservable=T,e.fromObservableLight=I})(d||(d={}));class u{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${u._idPool++}`,u.all.add(this)}start(e){this._stopWatch=new a.G,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}u.all=new Set,u._idPool=0;let h=-1;class g{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const i=this.threshold;if(i<=0||t{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class p{static create(){var e;return new p(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class f{constructor(e){this.value=e}}const m=2,v=(e,t)=>{if(e instanceof f)t(e);else for(let i=0;i0||(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new g(null!==(n=null===(i=this._options)||void 0===i?void 0:i.leakWarningThreshold)&&void 0!==n?n:h):void 0,this._perfMon=(null===(o=this._options)||void 0===o?void 0:o._profName)?new u(this._options._profName):void 0,this._deliveryQueue=null===(s=this._options)||void 0===s?void 0:s.deliveryQueue}dispose(){var e,t,i,n;if(!this._disposed){if(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners){if(l){const e=this._listeners;queueMicrotask((()=>{v(e,(e=>{var t;return null===(t=e.stack)||void 0===t?void 0:t.print()}))}))}this._listeners=void 0,this._size=0}null===(i=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose()}}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,i)=>{var n,o,r,a,c;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),s.JT.None;if(this._disposed)return s.JT.None;t&&(e=e.bind(t));const d=new f(e);let u,h;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(d.stack=p.create(),u=this._leakageMon.check(d.stack,this._size+1)),l&&(d.stack=null!==h&&void 0!==h?h:p.create()),this._listeners?this._listeners instanceof f?(null!==(c=this._deliveryQueue)&&void 0!==c||(this._deliveryQueue=new y),this._listeners=[this._listeners,d]):this._listeners.push(d):(null===(o=null===(n=this._options)||void 0===n?void 0:n.onWillAddFirstListener)||void 0===o||o.call(n,this),this._listeners=d,null===(a=null===(r=this._options)||void 0===r?void 0:r.onDidAddFirstListener)||void 0===a||a.call(r,this)),this._size++;const g=(0,s.OF)((()=>{null===u||void 0===u||u(),this._removeListener(d)}));return i instanceof s.SL?i.add(g):Array.isArray(i)&&i.push(g),g}),this._event}_removeListener(e){var t,i,n,o;if(null===(i=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===i||i.call(t,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(o=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===o||o.call(n,this),void(this._size=0);const s=this._listeners,r=s.indexOf(e);if(-1===r)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,s[r]=void 0;const a=this._deliveryQueue.current===this;if(this._size*m<=s.length){let e=0;for(let t=0;t0}}const b=()=>new y;class y{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class w extends _{constructor(e){super(e),this._isPaused=0,this._eventQueue=new r.S,this._mergeFn=null===e||void 0===e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else while(!this._isPaused&&0!==this._eventQueue.size)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class C extends w{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class S extends _{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null===e||void 0===e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask((()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach((e=>super.fire(e))),this._queuedEvents=[]})))}}class x{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new _({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);const i=()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)};return(0,s.OF)((0,o.M)(i))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach((e=>this.hook(e)))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach((e=>this.unhook(e)))}hook(e){e.listener=e.event((e=>this.emitter.fire(e)))}unhook(e){var t;null===(t=e.listener)||void 0===t||t.dispose(),e.listener=null}dispose(){var e;this.emitter.dispose();for(const t of this.events)null===(e=t.listener)||void 0===e||e.dispose();this.events=[]}}class k{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e((e=>{const n=this.buffers[this.buffers.length-1];n?n.push((()=>t.call(i,e))):t.call(i,e)}),void 0,n)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach((e=>e())),i}}class L{constructor(){this.listening=!1,this.inputEvent=d.None,this.inputEventListener=s.JT.None,this.emitter=new _({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},1535:(e,t,i)=>{"use strict";i.d(t,{KM:()=>d,ej:()=>a,fn:()=>l,oP:()=>h,yj:()=>c});var n=i(19912),o=i(47606),s=i(61720);function r(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,n.KR.sep)}function l(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function c(e,t=n.KR.sep){if(!e)return"";const i=e.length,o=e.charCodeAt(0);if(r(o)){if(r(e.charCodeAt(1))&&!r(e.charCodeAt(2))){let n=3;const o=n;for(;ne.length)return!1;if(i){const i=(0,s.ok)(e,t);if(!i)return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===o&&n--,e.charAt(n)===o}return t.charAt(t.length-1)!==o&&(t+=o),0===e.indexOf(t)}function u(e){return e>=65&&e<=90||e>=97&&e<=122}function h(e,t=o.ED){return!!t&&(u(e.charCodeAt(0))&&58===e.charCodeAt(1))}},90774:(e,t,i)=>{"use strict";i.d(t,{CL:()=>de,mX:()=>ue,jB:()=>K,mB:()=>G,EW:()=>he,l7:()=>fe,ir:()=>_,Oh:()=>$,XU:()=>q,Ji:()=>m,Sy:()=>b,KZ:()=>H,or:()=>f});var n=i(71400);function o(e){const t=a(e);if(t&&t.length>0)return new Uint32Array(t)}let s=0;const r=new Uint32Array(10);function a(e){if(s=0,l(e,d,4352),s>0)return r.subarray(0,s);if(l(e,u,4449),s>0)return r.subarray(0,s);if(l(e,h,4520),s>0)return r.subarray(0,s);if(l(e,g,12593),s)return r.subarray(0,s);if(e>=44032&&e<=55203){const t=e-44032,i=t%588,n=Math.floor(t/588),o=Math.floor(i/28),a=i%28-1;if(n=0&&(a0)return r.subarray(0,s)}}function l(e,t,i){e>=i&&e>8&&(r[s++]=e>>8&255),e>>16&&(r[s++]=e>>16&255))}const d=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),u=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),h=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),g=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);var p=i(61720);function f(...e){return function(t,i){for(let n=0,o=e.length;n0?[{start:0,end:t.length}]:[]:null}function _(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function b(e,t){return y(e.toLowerCase(),t.toLowerCase(),0,0)}function y(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]===t[n]){let o=null;return(o=y(e,t,i+1,n+1))?I({start:n,end:n+1},o):null}return y(e,t,i,n+1)}function w(e){return 97<=e&&e<=122}function C(e){return 65<=e&&e<=90}function S(e){return 48<=e&&e<=57}function x(e){return 32===e||9===e||10===e||13===e}const k=new Set;function L(e){return x(e)||k.has(e)}function E(e,t){return e===t||L(e)&&L(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>k.add(e.charCodeAt(0))));const N=new Map;function D(e){if(N.has(e))return N.get(e);let t;const i=o(e);return i&&(t=i),N.set(e,t),t}function T(e){return w(e)||C(e)||S(e)}function I(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function R(e,t){for(let i=t;i0&&!T(e.charCodeAt(i-1)))return i}return e.length}function A(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]!==t[n].toLowerCase())return null;{let o=null,s=n+1;o=A(e,t,i+1,n+1);while(!o&&(s=R(t,s)).6}function M(e){const{upperPercent:t,lowerPercent:i,alphaPercent:n,numericPercent:o}=e;return i>.2&&t<.8&&n>.6&&o<.2}function F(e){let t=0,i=0,n=0,o=0;for(let s=0;s60&&(t=t.substring(0,60));const i=O(t);if(!M(i)){if(!P(i))return null;t=t.toLowerCase()}let n=null,o=0;e=e.toLowerCase();while(o0&&L(e.charCodeAt(i-1)))return i;return e.length}const j=f(m,B,_),z=f(m,B,b),U=new n.z6(1e4);function $(e,t,i=!1){if("string"!==typeof e||"string"!==typeof t)return null;let n=U.get(e);n||(n=new RegExp(p.un(e),"i"),U.set(e,n));const o=n.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:i?z(e,t):j(e,t)}function q(e,t){const i=he(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?G(i):null}function K(e,t,i,n,o,s){const r=Math.min(13,e.length);for(;i1;n--){const o=e[n]+i,s=t[t.length-1];s&&s.end===o?s.end=o+1:t.push({start:o,end:o+1})}return t}const Z=128;function Q(){const e=[],t=[];for(let i=0;i<=Z;i++)t[i]=0;for(let i=0;i<=Z;i++)e.push(t.slice(0));return e}function Y(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const J=Y(2*Z),X=Y(2*Z),ee=Q(),te=Q(),ie=Q(),ne=!1;function oe(e,t,i,n,o){function s(e,t,i=" "){while(e.lengths(e,3))).join("|")}\n`;for(let a=0;a<=i;a++)r+=0===a?" |":`${t[a-1]}|`,r+=e[a].slice(0,o+1).map((e=>s(e.toString(),3))).join("|")+"\n";return r}function se(e,t,i,n){e=e.substr(t),i=i.substr(n),console.log(oe(te,e,e.length,i,i.length)),console.log(oe(ie,e,e.length,i,i.length)),console.log(oe(ee,e,e.length,i,i.length))}function re(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!p.C8(i)}}function ae(e,t){if(t<0||t>=e.length)return!1;const i=e.charCodeAt(t);switch(i){case 32:case 9:return!0;default:return!1}}function le(e,t,i){return t[e]!==i[e]}function ce(e,t,i,n,o,s,r=!1){while(tZ?Z:e.length,l=n.length>Z?Z:n.length;if(i>=a||s>=l||a-i>l-s)return;if(!ce(t,i,a,o,s,l,!0))return;ge(a,l,i,s,t,o);let c=1,d=1,u=i,h=s;const g=[!1];for(c=1,u=i;ur,_=v?te[c][d-1]+(ee[c][d-1]>0?-5:0):0,b=h>r+1&&ee[c][d-1]>0,y=b?te[c][d-2]+(ee[c][d-2]>0?-5:0):0;if(b&&(!v||y>=_)&&(!f||y>=m))te[c][d]=y,ie[c][d]=3,ee[c][d]=0;else if(v&&(!f||_>=m))te[c][d]=_,ie[c][d]=2,ee[c][d]=0;else{if(!f)throw new Error("not possible");te[c][d]=m,ie[c][d]=1,ee[c][d]=ee[c-1][d-1]+1}}}if(ne&&se(e,i,n,s),!g[0]&&!r.firstMatchCanBeWeak)return;c--,d--;const p=[te[c][d],s];let f=0,m=0;while(c>=1){let e=d;do{const t=ie[c][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);f>1&&t[i+c-1]===o[s+d-1]&&!le(e+s-1,n,o)&&f+1>ee[c][e]&&(e=d),e===d?f++:f=1,m||(m=e),c--,d=e-1,p.push(d)}l===a&&r.boostFullMatch&&(p[0]+=2);const v=m-a;return p[0]-=v,p}function ge(e,t,i,n,o,s){let r=e-1,a=t-1;while(r>=i&&a>=n)o[r]===s[a]&&(X[r]=a,r--),a--}function pe(e,t,i,n,o,s,r,a,l,c,d){if(t[i]!==s[r])return Number.MIN_SAFE_INTEGER;let u=1,h=!1;return r===i-n?u=e[i]===o[r]?7:5:!le(r,o,s)||0!==r&&le(r-1,o,s)?!re(s,r)||0!==r&&re(s,r-1)?(re(s,r-1)||ae(s,r-1))&&(u=5,h=!0):u=5:(u=e[i]===o[r]?7:5,h=!0),u>1&&i===n&&(d[0]=!0),h||(h=le(r,o,s)||re(s,r-1)||ae(s,r-1)),i===n?r>l&&(u-=h?3:5):u+=c?h?2:0:h?0:1,r+1===a&&(u-=h?3:5),u}function fe(e,t,i,n,o,s,r){return me(e,t,i,n,o,s,!0,r)}function me(e,t,i,n,o,s,r,a){let l=he(e,t,i,n,o,s,a);if(l&&!r)return l;if(e.length>=3){const t=Math.min(7,e.length-1);for(let r=i+1;rl[0])&&(l=e))}}}return l}function ve(e,t){if(t+1>=e.length)return;const i=e[t],n=e[t+1];return i!==n?e.slice(0,t)+n+i+e.slice(t+2):void 0}ue.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}},81332:(e,t,i)=>{"use strict";function n(e,t){const i=this;let n,o=!1;return function(){if(o)return n;if(o=!0,t)try{n=e.apply(i,arguments)}finally{t()}else n=e.apply(i,arguments);return n}}i.d(t,{M:()=>n})},48079:(e,t,i)=>{"use strict";i.d(t,{EQ:()=>O,Qc:()=>P});var n=i(85398),o=i(1535),s=i(71400),r=i(19912),a=i(47606),l=i(61720);const c="**",d="/",u="[/\\\\]",h="[^/\\\\]",g=/\//g;function p(e,t){switch(e){case 0:return"";case 1:return`${h}*?`;default:return`(?:${u}|${h}+${u}${t?`|${u}${h}+`:""})*?`}}function f(e,t){if(!e)return[];const i=[];let n=!1,o=!1,s="";for(const r of e){switch(r){case t:if(!n&&!o){i.push(s),s="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":o=!0;break;case"]":o=!1;break}s+=r}return s&&i.push(s),i}function m(e){if(!e)return"";let t="";const i=f(e,d);if(i.every((e=>e===c)))t=".*";else{let e=!1;i.forEach(((n,o)=>{if(n===c){if(e)return;t+=p(2,o===i.length-1)}else{let e=!1,s="",r=!1,a="";for(const i of n)if("}"!==i&&e)s+=i;else if(!r||"]"===i&&a)switch(i){case"{":e=!0;continue;case"[":r=!0;continue;case"}":{const i=f(s,","),n=`(?:${i.map((e=>m(e))).join("|")})`;t+=n,e=!1,s="";break}case"]":t+="["+a+"]",r=!1,a="";break;case"?":t+=h;continue;case"*":t+=p(1);continue;default:t+=(0,l.ec)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||a?i===d?"":(0,l.ec)(i):"^",a+=e}oL(e,t))).filter((e=>e!==k)),e),n=i.length;if(!n)return k;if(1===n)return i[0];const o=function(t,n){for(let o=0,s=i.length;o!!e.allBasenames));s&&(o.allBasenames=s.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(o.allPaths=r),o}function R(e,t,i){const n=r.ir===r.KR.sep,o=n?e:e.replace(g,r.ir),s=r.ir+o,a=r.KR.sep+e;let l;return l=i?function(i,r){return"string"!==typeof i||i!==o&&!i.endsWith(s)&&(n||i!==e&&!i.endsWith(a))?null:t}:function(i,s){return"string"!==typeof i||i!==o&&(n||i!==e)?null:t},l.allPaths=[(i?"*/":"./")+e],l}function A(e){try{const t=new RegExp(`^${m(e)}$`);return function(i){return t.lastIndex=0,"string"===typeof i&&t.test(i)?e:null}}catch(t){return k}}function O(e,t,i){return!(!e||"string"!==typeof t)&&P(e)(t,void 0,i)}function P(e,t={}){if(!e)return x;if("string"===typeof e||M(e)){const i=L(e,t);if(i===k)return x;const n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return F(e,t)}function M(e){const t=e;return!!t&&("string"===typeof t.base&&"string"===typeof t.pattern)}function F(e,t){const i=H(Object.getOwnPropertyNames(e).map((i=>B(i,e[i],t))).filter((e=>e!==k))),o=i.length;if(!o)return k;if(!i.some((e=>!!e.requiresSiblings))){if(1===o)return i[0];const e=function(e,t){let o;for(let s=0,r=i.length;s{for(const e of o){const t=await e;if("string"===typeof t)return t}return null})():null},t=i.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,o){let s,a;for(let l=0,c=i.length;l{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=i.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return l.length&&(s.allPaths=l),s}function B(e,t,i){if(!1===t)return k;const o=L(e,i);if(o===k)return k;if("boolean"===typeof t)return o;if(t){const i=t.when;if("string"===typeof i){const t=(t,s,r,a)=>{if(!a||!o(t,s))return null;const l=i.replace("$(basename)",(()=>r)),c=a(l);return(0,n.J8)(c)?c.then((t=>t?e:null)):c?e:null};return t.requiresSiblings=!0,t}}return o}function H(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const n=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let o;if(t){o=[];for(let e=0,i=n.length;e{const i=t.patterns;return i?e.concat(i):e}),[]);const s=function(e,t){if("string"!==typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=n.indexOf(t);return-1!==i?o[i]:null};s.basenames=n,s.patterns=o,s.allBasenames=n;const r=e.filter((e=>!e.basenames));return r.push(s),r}},63381:(e,t,i)=>{"use strict";i.d(t,{Cv:()=>l,SP:()=>s,vp:()=>o,yP:()=>f});var n=i(61720);function o(e){return s(e,0)}function s(e,t){switch(typeof e){case"object":return null===e?r(349,t):Array.isArray(e)?c(e,t):d(e,t);case"string":return l(e,t);case"boolean":return a(e,t);case"number":return r(e,t);case"undefined":return r(937,t);default:return r(617,t)}}function r(e,t){return(t<<5)-t+e|0}function a(e,t){return r(e?433:863,t)}function l(e,t){t=r(149417,t);for(let i=0,n=e.length;is(t,e)),t)}function d(e,t){return t=r(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=l(i,t),s(e[i],t))),t)}function u(e,t,i=32){const n=i-t,o=~((1<>>n)>>>0}function h(e,t=0,i=e.byteLength,n=0){for(let o=0;oe.toString(16).padStart(2,"0"))).join(""):g((e>>>0).toString(16),t/4)}class f{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let o,s,r=this._buffLen,a=this._leftoverHighSurrogate;0!==a?(o=a,s=-1,a=0):(o=e.charCodeAt(0),s=0);while(1){let l=o;if(n.ZG(o)){if(!(s+1>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),p(this._h0)+p(this._h1)+p(this._h2)+p(this._h3)+p(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,h(this._buff,this._buffLen),this._buffLen>56&&(this._step(),h(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=f._bigBlock32,t=this._buffDV;for(let d=0;d<64;d+=4)e.setUint32(d,t.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,u(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let i,n,o,s=this._h0,r=this._h1,a=this._h2,l=this._h3,c=this._h4;for(let d=0;d<80;d++)d<20?(i=r&a|~r&l,n=1518500249):d<40?(i=r^a^l,n=1859775393):d<60?(i=r&a|r&l|a&l,n=2400959708):(i=r^a^l,n=3395469782),o=u(s,5)+i+c+n+e.getUint32(4*d,!1)&4294967295,c=l,l=a,a=u(r,30),r=s,s=o;this._h0=this._h0+s&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+c&4294967295}}f._bigBlock32=new DataView(new ArrayBuffer(320))},81478:(e,t,i)=>{"use strict";i.d(t,{CP:()=>c,Fr:()=>d,W5:()=>l,d9:()=>p,g_:()=>u,oR:()=>f,v1:()=>m});var n=i(98642),o=i(96559),s=i(21230),r=i(61720),a=i(95896);class l{constructor(e="",t=!1){var i,o,s;if(this.value=e,"string"!==typeof this.value)throw(0,n.b1)("value");"boolean"===typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=null!==(i=t.isTrusted)&&void 0!==i?i:void 0,this.supportThemeIcons=null!==(o=t.supportThemeIcons)&&void 0!==o&&o,this.supportHtml=null!==(s=t.supportHtml)&&void 0!==s&&s)}appendText(e,t=0){return this.value+=h(this.supportThemeIcons?(0,o.Qo)(e):e).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`\n${g(t,e)}\n`,this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp((0,r.ec)(t),"g");return e.replace(i,((t,i)=>"\\"!==e.charAt(i-1)?`\\${t}`:t))}}function c(e){return d(e)?!e.value:!Array.isArray(e)||e.every(c)}function d(e){return e instanceof l||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||"object"===typeof e.isTrusted||void 0===e.isTrusted)&&("boolean"===typeof e.supportThemeIcons||void 0===e.supportThemeIcons))}function u(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons&&e.supportHtml===t.supportHtml&&(e.baseUri===t.baseUri||!!e.baseUri&&!!t.baseUri&&(0,s.Xy)(a.o.from(e.baseUri),a.o.from(t.baseUri))))}function h(e){return e.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function g(e,t){var i,n;const o=null!==(n=null===(i=e.match(/^`+/gm))||void 0===i?void 0:i.reduce(((e,t)=>e.length>t.length?e:t)).length)&&void 0!==n?n:0,s=o>=3?o+1:3;return[`${"`".repeat(s)}${t}`,e,`${"`".repeat(s)}`].join("\n")}function p(e){return e.replace(/"/g,""")}function f(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}function m(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const n=i[1];if(n){const e=/height=(\d+)/.exec(n),i=/width=(\d+)/.exec(n),o=e?e[1]:"",s=i?i[1]:"",r=isFinite(parseInt(s)),a=isFinite(parseInt(o));r&&t.push(`width="${s}"`),a&&t.push(`height="${o}"`)}return{href:e,dimensions:t}}},96559:(e,t,i)=>{"use strict";i.d(t,{Gt:()=>v,Ho:()=>m,JL:()=>p,Qo:()=>c,f$:()=>u,x$:()=>g});var n=i(90774),o=i(61720),s=i(99588);const r="$(",a=new RegExp(`\\$\\(${s.k.iconNameExpression}(?:${s.k.iconModifierExpression})?\\)`,"g"),l=new RegExp(`(\\\\)?${a.source}`,"g");function c(e){return e.replace(l,((e,t)=>t?e:`\\${e}`))}const d=new RegExp(`\\\\${a.source}`,"g");function u(e){return e.replace(d,(e=>`\\${e}`))}const h=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(r)?e:e.replace(h,((e,t,i,n)=>i?e:t||n||""))}function p(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}const f=new RegExp(`\\$\\(${s.k.iconNameCharacter}+\\)`,"g");function m(e){f.lastIndex=0;let t="";const i=[];let n=0;while(1){const o=f.lastIndex,s=f.exec(e),r=e.substring(o,null===s||void 0===s?void 0:s.index);if(r.length>0){t+=r;for(let e=0;e{"use strict";i.d(t,{R:()=>n,a:()=>o});class n{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const o=new n("id#")},73218:(e,t,i)=>{"use strict";i.d(t,{F:()=>s});var n=i(11271);class o{constructor(){this._onDidChange=new n.Q5,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}const s=new o},39595:(e,t,i)=>{"use strict";var n;i.d(t,{$:()=>n}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function n(){return i}function*o(e){yield e}function s(e){return t(e)?e:o(e)}function r(e){return e||i}function*a(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function l(e){return!e||!0===e[Symbol.iterator]().next().done}function c(e){return e[Symbol.iterator]().next().value}function d(e,t){for(const i of e)if(t(i))return!0;return!1}function u(e,t){for(const i of e)if(t(i))return i}function*h(e,t){for(const i of e)t(i)&&(yield i)}function*g(e,t){let i=0;for(const n of e)yield t(n,i++)}function*p(...e){for(const t of e)yield*t}function f(e,t,i){let n=i;for(const o of e)n=t(n,o);return n}function*m(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t{"use strict";i.d(t,{H_:()=>a,Vd:()=>h,gx:()=>f,kL:()=>p});class n{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const o=new n,s=new n,r=new n,a=new Array(230),l={},c=[],d=Object.create(null),u=Object.create(null),h=[],g=[];for(let m=0;m<=193;m++)h[m]=-1;for(let m=0;m<=132;m++)g[m]=-1;var p;function f(e,t){const i=(65535&t)<<16>>>0;return(e|i)>>>0}(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],n=[];for(const p of t){const[e,t,f,m,v,_,b,y,w]=p;if(n[t]||(n[t]=!0,c[t]=f,d[f]=t,u[f.toLowerCase()]=t,e&&(h[t]=m,0!==m&&3!==m&&5!==m&&4!==m&&6!==m&&57!==m&&(g[m]=t))),!i[m]){if(i[m]=!0,!v)throw new Error(`String representation missing for key code ${m} around scan code ${f}`);o.define(m,v),s.define(m,y||v),r.define(m,w||y||v)}_&&(a[_]=m),b&&(l[b]=m)}g[3]=46})(),function(e){function t(e){return o.keyCodeToStr(e)}function i(e){return o.strToKeyCode(e)}function n(e){return s.keyCodeToStr(e)}function a(e){return r.keyCodeToStr(e)}function l(e){return s.strToKeyCode(e)||r.strToKeyCode(e)}function c(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return o.keyCodeToStr(e)}e.toString=t,e.fromString=i,e.toUserSettingsUS=n,e.toUserSettingsGeneral=a,e.fromUserSettings=l,e.toElectronAccelerator=c}(p||(p={}))},9501:(e,t,i)=>{"use strict";i.d(t,{X4:()=>r,jC:()=>a,r6:()=>l,xo:()=>s});var n=i(25206);class o{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const n=[];for(let o=0,s=t.length;o{"use strict";i.d(t,{$M:()=>r,Z9:()=>o,aZ:()=>l,f1:()=>c});var n=i(98642);function o(e,t){if("number"===typeof e){if(0===e)return null;const i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new a(0!==n?[s(i,t),s(n,t)]:[s(i,t)])}{const i=[];for(let n=0;n{"use strict";i.d(t,{o:()=>n});class n{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},70959:(e,t,i)=>{"use strict";i.d(t,{B9:()=>p,F8:()=>f,JT:()=>_,Jz:()=>w,L6:()=>y,Nq:()=>c,OF:()=>m,SL:()=>v,Wf:()=>g,XK:()=>b,b2:()=>C,dk:()=>h,wi:()=>l});var n=i(81332),o=i(39595);const s=!1;let r=null;function a(e){r=e}if(s){const e="__is_disposable_tracked__";a(new class{trackDisposable(t){const i=new Error("Potentially leaked disposable").stack;setTimeout((()=>{t[e]||console.log(i)}),3e3)}setParent(t,i){if(t&&t!==_.None)try{t[e]=!0}catch(n){}}markAsDisposed(t){if(t&&t!==_.None)try{t[e]=!0}catch(i){}}markAsSingleton(e){}})}function l(e){return null===r||void 0===r||r.trackDisposable(e),e}function c(e){null===r||void 0===r||r.markAsDisposed(e)}function d(e,t){null===r||void 0===r||r.setParent(e,t)}function u(e,t){if(r)for(const i of e)r.setParent(i,t)}function h(e){return null===r||void 0===r||r.markAsSingleton(e),e}function g(e){return"function"===typeof e.dispose&&0===e.dispose.length}function p(e){if(o.$.is(e)){const i=[];for(const n of e)if(n)try{n.dispose()}catch(t){i.push(t)}if(1===i.length)throw i[0];if(i.length>1)throw new AggregateError(i,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function f(...e){const t=m((()=>p(e)));return u(e,t),t}function m(e){const t=l({dispose:(0,n.M)((()=>{c(t),e()}))});return t}class v{constructor(){this._toDispose=new Set,this._isDisposed=!1,l(this)}dispose(){this._isDisposed||(c(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{p(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return d(e,this),this._isDisposed?v.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),d(e,null))}}v.DISABLE_DISPOSED_WARNING=!1;class _{constructor(){this._store=new v,l(this),d(this._store,this)}dispose(){c(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}_.None=Object.freeze({dispose(){}});class b{constructor(){this._isDisposed=!1,l(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&d(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,c(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class y{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class w{constructor(e){this.object=e}dispose(){}}class C{constructor(){this._store=new Map,this._isDisposed=!1,l(this)}dispose(){c(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{p(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},33010:(e,t,i)=>{"use strict";i.d(t,{S:()=>o});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class o{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;while(e!==n.Undefined){const t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;while(e!==n.Undefined)yield e.element,e=e.next}}},71400:(e,t,i)=>{"use strict";var n,o;i.d(t,{Y9:()=>a,YQ:()=>d,ri:()=>u,z6:()=>c});class s{constructor(e,t){this.uri=e,this.value=t}}function r(e){return Array.isArray(e)}class a{constructor(e,t){if(this[n]="ResourceMap",e instanceof a)this.map=new Map(e.map),this.toKey=null!==t&&void 0!==t?t:a.defaultToKey;else if(r(e)){this.map=new Map,this.toKey=null!==t&&void 0!==t?t:a.defaultToKey;for(const[t,i]of e)this.set(t,i)}else this.map=new Map,this.toKey=null!==e&&void 0!==e?e:a.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[i,n]of this.map)e(n.value,n.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}a.defaultToKey=e=>e.toString();class l{constructor(){this[o]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:this.addItemLast(n);break;default:this.addItemLast(n);break}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;while(n){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}[(o=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;while(t&&i>e)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class c extends l{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}class d{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class u{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},79247:(e,t,i)=>{"use strict";i.d(t,{Pz:()=>s,Qc:()=>r});var n=i(80356),o=i(95896);function s(e){return JSON.stringify(e,a)}function r(e){let t=JSON.parse(e);return t=l(t),t}function a(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function l(e,t=0){if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return o.o.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof n.KN||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i{"use strict";i.d(t,{v:()=>n});const n=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},50200:(e,t,i)=>{"use strict";i.d(t,{Gi:()=>f,Gs:()=>c,WX:()=>h,lg:()=>n,xn:()=>l});var n,o=i(98642),s=i(47606),r=i(61720),a=i(95896);function l(e,t){return a.o.isUri(e)?(0,r.qq)(e.scheme,t):(0,r.ok)(e,t+":")}function c(e,...t){return t.some((t=>l(e,t)))}(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.codeSetting="code-setting",e.codeFeature="code-feature"})(n||(n={}));const d="tkn";class u{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath=`/${n.vscodeRemoteResource}`}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(u){return o.dL(u),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const r=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&${d}=${encodeURIComponent(l)}`),a.o.from({scheme:s.$L?this._preferredWebSchema:n.vscodeRemoteResource,authority:`${i}:${r}`,path:this._remoteResourcesPath,query:c})}}const h=new u,g="vscode-app";class p{uriToBrowserUri(e){return e.scheme===n.vscodeRemote?h.rewrite(e):e.scheme!==n.file||!s.tY&&s.qB!==`${n.vscodeFileResource}://${p.FALLBACK_AUTHORITY}`?e:e.with({scheme:n.vscodeFileResource,authority:e.authority||p.FALLBACK_AUTHORITY,query:null,fragment:null})}}p.FALLBACK_AUTHORITY=g;const f=new p;var m;(function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";function n(e){let n;"string"===typeof e?n=new URL(e).searchParams:e instanceof URL?n=e.searchParams:a.o.isUri(e)&&(n=new URL(e.toString(!0)).searchParams);const o=null===n||void 0===n?void 0:n.get(i);if(o)return t.get(o)}function o(e,t,n){if(!globalThis.crossOriginIsolated)return;const o=t&&n?"3":n?"2":"1";e instanceof URLSearchParams?e.set(i,o):e[i]=o}e.getHeadersFromQuery=n,e.addSearchParam=o})(m||(m={}))},46304:(e,t,i)=>{"use strict";function n(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{N:()=>s,nM:()=>o,uZ:()=>n});class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class s{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n{"use strict";i.d(t,{$E:()=>h,I8:()=>o,IU:()=>g,_A:()=>s,fS:()=>d,jB:()=>c,rs:()=>a});var n=i(55455);function o(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach((([e,i])=>{t[e]=i&&"object"===typeof i?o(i):i})),t}function s(e){if(!e||"object"!==typeof e)return e;const t=[e];while(t.length>0){const e=t.shift();Object.freeze(e);for(const i in e)if(r.call(e,i)){const o=e[i];"object"!==typeof o||Object.isFrozen(o)||(0,n.fU)(o)||t.push(o)}}return e}const r=Object.prototype.hasOwnProperty;function a(e,t){return l(e,t,new Set)}function l(e,t,i){if((0,n.Jp)(e))return e;const o=t(e);if("undefined"!==typeof o)return o;if(Array.isArray(e)){const n=[];for(const o of e)n.push(l(o,t,i));return n}if((0,n.Kn)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const n={};for(const o in e)r.call(e,o)&&(n[o]=l(e[o],t,i));return i.delete(e),n}return e}function c(e,t,i=!0){return(0,n.Kn)(e)?((0,n.Kn)(t)&&Object.keys(t).forEach((o=>{o in e?i&&((0,n.Kn)(e[o])&&(0,n.Kn)(t[o])?c(e[o],t[o],i):e[o]=t[o]):e[o]=t[o]})),e):t}function d(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;ifunction(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(const o of e)n[o]=i(o);return n}},33755:(e,t,i)=>{"use strict";i.d(t,{EH:()=>c,nJ:()=>u,UV:()=>d,gp:()=>h,Dz:()=>p.Dz,nK:()=>o.nK,aK:()=>o.aK,bx:()=>p.bx,bk:()=>o.bk,Be:()=>o.Be,DN:()=>n.DN,rD:()=>p.rD,GN:()=>p.GN,aq:()=>p.aq,uh:()=>n.uh,jx:()=>p.DN,c8:()=>n.c8,PS:()=>n.PS,F_:()=>f});var n=i(2133),o=i(82064),s=i(65662),r=i(70959),a=i(23204),l=i(61678);function c(e){return new g(new a.IZ(void 0,void 0,e),e,void 0,void 0)}function d(e,t){var i;return new g(new a.IZ(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,void 0,void 0)}function u(e,t){var i;return new g(new a.IZ(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,e.createEmptyChangeSummary,e.handleChange)}function h(e){const t=new r.SL,i=d({owner:void 0,debugName:void 0,debugReferenceFn:e},(i=>{t.clear(),e(i,t)}));return(0,r.OF)((()=>{i.dispose(),t.dispose()}))}class g{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n){var o,s;this._debugNameData=e,this._runFn=t,this.createChangeSummary=i,this._handleChange=n,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=null===(o=this.createChangeSummary)||void 0===o?void 0:o.call(this),null===(s=(0,l.jl)())||void 0===s||s.handleAutorunCreated(this),this._runIfNeeded(),(0,r.wi)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.Nq)(this)}_runIfNeeded(){var e,t,i;if(3===this.state)return;const n=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=n,this.state=3;const o=this.disposed;try{if(!o){null===(e=(0,l.jl)())||void 0===e||e.handleAutorunTriggered(this);const i=this.changeSummary;this.changeSummary=null===(t=this.createChangeSummary)||void 0===t?void 0:t.call(this),this._runFn(this,i)}}finally{o||null===(i=(0,l.jl)())||void 0===i||i.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,s.eZ)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary);i&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}(function(e){e.Observer=g})(c||(c={}));var p=i(67491);function f(e,t,i){return new Promise(((n,o)=>{let s=!0,r=!1;const a=e.map((e=>({isFinished:t(e),error:!!i&&i(e),state:e}))),l=c((e=>{const{isFinished:t,error:i,state:c}=a.read(e);(t||i)&&(s?r=!0:l.dispose(),i?o(!0===i?c:i):n(c))}));s=!1,r&&l.dispose()}))}const m=!1;m&&(0,l.EK)(new l.Qy)},2133:(e,t,i)=>{"use strict";i.d(t,{Bl:()=>f,DN:()=>w,Hr:()=>m,Jn:()=>d,MK:()=>c,Nc:()=>h,PS:()=>p,c8:()=>v,hm:()=>g,mT:()=>u,uh:()=>b});var n=i(23204),o=i(61678);let s,r,a,l;function c(e){s=e}function d(e){r=e}function u(e){a=e}class h{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const i=void 0===t?void 0:e,o=void 0===t?e:t;return a({owner:i,debugName:()=>{const e=(0,n.$P)(o);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/,s=t.exec(o.toString());return s?`${this.debugName}.${s[2]}`:i?void 0:`${this.debugName} (mapped)`}},(e=>o(this.read(e),e)))}recomputeInitiallyAndOnChange(e,t){return e.add(s(this,t)),this}}class g extends h{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){const t=this.observers.delete(e);t&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function p(e,t){const i=new _(e,t);try{e(i)}finally{i.finish()}}function f(e){if(l)e(l);else{const t=new _(e,void 0);l=t;try{e(t)}finally{t.finish(),l=void 0}}}async function m(e,t){const i=new _(e,t);try{await e(i)}finally{i.finish()}}function v(e,t,i){e?t(e):p(t,i)}class _{constructor(e,t){var i;this._fn=e,this._getDebugName=t,this.updatingObservers=[],null===(i=(0,o.jl)())||void 0===i||i.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,n.$P)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){var e;const t=this.updatingObservers;for(let i=0;i{}),(()=>`Setting ${this.debugName}`)));try{const s=this._value;this._setValue(e),null===(n=(0,o.jl)())||void 0===n||n.handleObservableChanged(this,{oldValue:s,newValue:e,change:i,didChange:!0,hadValue:!0});for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{s&&s.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function w(e,t){return"string"===typeof e?new C(void 0,e,t):new C(e,void 0,t)}class C extends y{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){var e;null===(e=this._value)||void 0===e||e.dispose()}}},23204:(e,t,i)=>{"use strict";i.d(t,{$P:()=>g,IZ:()=>n});class n{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return r(e,this)}}const o=new Map,s=new WeakMap;function r(e,t){var i;const n=s.get(e);if(n)return n;const r=a(e,t);if(r){let t=null!==(i=o.get(r))&&void 0!==i?i:0;t++,o.set(r,t);const n=1===t?r:`${r}#${t}`;return s.set(e,n),n}}function a(e,t){const i=s.get(e);if(i)return i;const n=t.owner?u(t.owner)+".":"";let o;const r=t.debugNameSource;if(void 0!==r){if("function"!==typeof r)return n+r;if(o=r(),void 0!==o)return n+o}const a=t.referenceFn;if(void 0!==a&&(o=g(a),void 0!==o))return n+o;if(void 0!==t.owner){const i=l(t.owner,e);if(void 0!==i)return n+i}}function l(e,t){for(const i in e)if(e[i]===t)return i}const c=new Map,d=new WeakMap;function u(e){var t;const i=d.get(e);if(i)return i;const n=h(e);let o=null!==(t=c.get(n))&&void 0!==t?t:0;o++,c.set(n,o);const s=1===o?n:`${n}#${o}`;return d.set(e,s),s}function h(e){const t=e.constructor;return t?t.name:"Object"}function g(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//,n=i.exec(t),o=n?n[1]:void 0;return null===o||void 0===o?void 0:o.trim()}},82064:(e,t,i)=>{"use strict";i.d(t,{Be:()=>h,aK:()=>u,bk:()=>d,kA:()=>g,nK:()=>c});var n=i(65662),o=i(70959),s=i(2133),r=i(23204),a=i(61678);const l=(e,t)=>e===t;function c(e,t){return void 0!==t?new p(new r.IZ(e,void 0,t),t,void 0,void 0,void 0,l):new p(new r.IZ(void 0,void 0,e),e,void 0,void 0,void 0,l)}function d(e,t){var i;return new p(new r.IZ(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,null!==(i=e.equalityComparer)&&void 0!==i?i:l)}function u(e,t){var i;return new p(new r.IZ(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,null!==(i=e.equalityComparer)&&void 0!==i?i:l)}function h(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);const s=new o.SL;return new p(new r.IZ(n,void 0,i),(e=>(s.clear(),i(e,s))),void 0,void 0,(()=>s.dispose()),l)}function g(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);const s=new o.SL;return new p(new r.IZ(n,void 0,i),(e=>{s.clear();const t=i(e);return t&&s.add(t),t}),void 0,void 0,(()=>s.dispose()),l)}(0,s.mT)(d);class p extends s.hm{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n,o=void 0,s){var r,l;super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=n,this._handleLastObserverRemoved=o,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=null===(r=this.createChangeSummary)||void 0===r?void 0:r.call(this),null===(l=(0,a.jl)())||void 0===l||l.handleDerivedCreated(this)}onLastObserverRemoved(){var e;this.state=0,this.value=void 0;for(const t of this.dependencies)t.removeObserver(this);this.dependencies.clear(),null===(e=this._handleLastObserverRemoved)||void 0===e||e.call(this)}get(){var e;if(0===this.observers.size){const t=this._computeFn(this,null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this));return this.onLastObserverRemoved(),t}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){var e,t;if(3===this.state)return;const i=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=i;const n=0!==this.state,o=this.value;this.state=3;const s=this.changeSummary;this.changeSummary=null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this);try{this.value=this._computeFn(this,s)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=n&&!this._equalityComparator(o,this.value);if(null===(t=(0,a.jl)())||void 0===t||t.handleDerivedRecomputed(this,{oldValue:o,newValue:this.value,change:void 0,didChange:r,hadValue:n}),r)for(const a of this.observers)a.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const i of this.observers)i.handlePossibleChange(this);if(t)for(const i of this.observers)i.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,n.eZ)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),n=3===this.state;if(i&&(1===this.state||n)&&(this.state=2,n))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}},61678:(e,t,i)=>{"use strict";let n;function o(e){n=e}function s(){return n}i.d(t,{EK:()=>o,Qy:()=>r,jl:()=>s});class r{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return a([l(p("| ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[l(" "),d(u(e.oldValue,70),{color:"red",strikeThrough:!0}),l(" "),d(u(e.newValue,60),{color:"green"})]:[l(" (unchanged)")]:[l(" "),d(u(e.newValue,60),{color:"green"}),l(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([c("observable value changed"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return d(" (changed deps: "+[...e].map((e=>e.debugName)).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleDerivedRecomputed(e,t){const i=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("derived recomputed"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(i),{data:[{fn:e._computeFn}]}])),i.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([c("observable from event triggered"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleAutorunTriggered(e){const t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("autorun"),d(e.debugName,{color:"BlueViolet"}),this.formatChanges(t),{data:[{fn:e._runFn}]}])),t.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let t=e.getDebugName();void 0===t&&(t=""),console.log(...this.textToConsoleArgs([c("transaction"),d(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){const t=new Array,i=[];let n="";function o(e){if("length"in e)for(const t of e)t&&o(t);else"text"in e?(n+=`%c${e.text}`,t.push(e.style),e.data&&i.push(...e.data)):"data"in e&&i.push(...e.data)}o(e);const s=[n,...t];return s.push(...i),s}function l(e){return d(e,{color:"black"})}function c(e){return d(f(`${e}: `,10),{color:"black",bold:!0})}function d(e,t={color:"black"}){function i(e){return Object.entries(e).reduce(((e,[t,i])=>`${e}${t}:${i};`),"")}const n={color:t.color};return t.strikeThrough&&(n["text-decoration"]="line-through"),t.bold&&(n["font-weight"]="bold"),{text:e,style:i(n)}}function u(e,t){switch(typeof e){case"number":return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?h(e,t):g(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`;default:return""+e}}function h(e,t){let i="[ ",n=!0;for(const o of e){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${u(o,t-i.length)}`}return i+=" ]",i}function g(e,t){let i="{ ",n=!0;for(const[o,s]of Object.entries(e)){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${o}: ${u(s,t-i.length)}`}return i+=" }",i}function p(e,t){let i="";for(let n=1;n<=t;n++)i+=e;return i}function f(e,t){while(e.length{"use strict";i.d(t,{DN:()=>v,Dz:()=>l,GN:()=>p,Zg:()=>y,aq:()=>h,bx:()=>b,rD:()=>d});var n=i(70959),o=i(2133),s=i(23204),r=i(82064),a=i(61678);function l(e){return new c(e)}class c extends o.Nc{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function d(e,t){return new u(e,t)}class u extends o.hm{constructor(e,t){super(),this.event=e,this._getValue=t,this.hasValue=!1,this.handleEvent=e=>{var t;const i=this._getValue(e),n=this.value,s=!this.hasValue||n!==i;let r=!1;s&&(this.value=i,this.hasValue&&(r=!0,(0,o.c8)(u.globalTransaction,(e=>{var t;null===(t=(0,a.jl)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:n,newValue:i,change:void 0,didChange:s,hadValue:this.hasValue});for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||null===(t=(0,a.jl)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:n,newValue:i,change:void 0,didChange:s,hadValue:this.hasValue})}}getDebugName(){return(0,s.$P)(this._getValue)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this._getValue(void 0)}}function h(e,t){return new g(e,t)}(function(e){function t(e,t){let i=!1;void 0===u.globalTransaction&&(u.globalTransaction=e,i=!0);try{t()}finally{i&&(u.globalTransaction=void 0)}}e.Observer=u,e.batchEventsGlobally=t})(d||(d={}));class g extends o.hm{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,o.PS)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function p(e){return"string"===typeof e?new f(e):new f(void 0,e)}class f extends o.hm{get debugName(){var e;return null!==(e=new s.IZ(this._owner,this._debugName,void 0).getDebugName(this))&&void 0!==e?e:"Observable Signal"}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(e)for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t);else(0,o.PS)((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}function m(e){const t=new _(!1,void 0);return e.addObserver(t),(0,n.OF)((()=>{e.removeObserver(t)}))}function v(e,t){const i=new _(!0,t);return e.addObserver(i),t?t(e.get()):e.reportChanges(),(0,n.OF)((()=>{e.removeObserver(i)}))}(0,o.Jn)(m),(0,o.MK)(v);class _{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function b(e){let t;const i=(0,r.nK)((i=>(t=e(i,t),t)));return i}function y(e,t,i,n){let o=new w(i,n);const s=(0,r.bk)({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{o.dispose(),o=new w(i)}},(e=>(o.setItems(t.read(e)),o.getItems())));return s}class w{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach((e=>e.store.dispose())),this._cache.clear()}setItems(e){const t=[],i=new Set(this._cache.keys());for(const o of e){const e=this._keySelector?this._keySelector(o):o;let s=this._cache.get(e);if(s)i.delete(e);else{const t=new n.SL,i=this._map(o,t);s={out:i,store:t},this._cache.set(e,s)}t.push(s.out)}for(const n of i){const e=this._cache.get(n);e.store.dispose(),this._cache.delete(n)}this._items=t}getItems(){return this._items}}},19912:(e,t,i)=>{"use strict";i.d(t,{DB:()=>L,DZ:()=>T,EZ:()=>D,Fv:()=>k,Gf:()=>E,KR:()=>x,Ku:()=>C,XX:()=>N,ir:()=>I});var n=i(93962);const o=65,s=97,r=90,a=122,l=46,c=47,d=92,u=58,h=63;class g extends Error{constructor(e,t,i){let n;"string"===typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";const o=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${o} ${n} of type ${t}`;s+=". Received type "+typeof i,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function p(e,t){if(null===e||"object"!==typeof e)throw new g(t,"Object",e)}function f(e,t){if("string"!==typeof e)throw new g(t,"string",e)}const m="win32"===n.Jv;function v(e){return e===c||e===d}function _(e){return e===c}function b(e){return e>=o&&e<=r||e>=s&&e<=a}function y(e,t,i,n){let o="",s=0,r=-1,a=0,d=0;for(let u=0;u<=e.length;++u){if(u2){const e=o.lastIndexOf(i);-1===e?(o="",s=0):(o=o.slice(0,e),s=o.length-1-o.lastIndexOf(i)),r=u,a=0;continue}if(0!==o.length){o="",s=0,r=u,a=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",s=2)}else o.length>0?o+=`${i}${e.slice(r+1,u)}`:o=e.slice(r+1,u),s=u-r-1;r=u,a=0}else d===l&&-1!==a?++a:a=-1}return o}function w(e,t){p(t,"pathObject");const i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}const C={resolve(...e){let t="",i="",o=!1;for(let s=e.length-1;s>=-1;s--){let r;if(s>=0){if(r=e[s],f(r,"path"),0===r.length)continue}else 0===t.length?r=n.Vj():(r=n.OB[`=${t}`]||n.Vj(),(void 0===r||r.slice(0,2).toLowerCase()!==t.toLowerCase()&&r.charCodeAt(2)===d)&&(r=`${t}\\`));const a=r.length;let l=0,c="",h=!1;const g=r.charCodeAt(0);if(1===a)v(g)&&(l=1,h=!0);else if(v(g))if(h=!0,v(r.charCodeAt(1))){let e=2,t=e;while(e2&&v(r.charCodeAt(2))&&(h=!0,l=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(o){if(t.length>0)break}else if(i=`${r.slice(l)}\\${i}`,o=h,h&&t.length>0)break}return i=y(i,!o,"\\",v),o?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){f(e,"path");const t=e.length;if(0===t)return".";let i,n=0,o=!1;const s=e.charCodeAt(0);if(1===t)return _(s)?"\\":e;if(v(s))if(o=!0,v(e.charCodeAt(1))){let o=2,s=o;while(o2&&v(e.charCodeAt(2))&&(o=!0,n=3));let r=n0&&v(e.charCodeAt(t-1))&&(r+="\\"),void 0===i?o?`\\${r}`:r:o?`${i}\\${r}`:`${i}${r}`},isAbsolute(e){f(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return v(i)||t>2&&b(i)&&e.charCodeAt(1)===u&&v(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let s=0;s0&&(void 0===t?t=i=n:t+=`\\${n}`)}if(void 0===t)return".";let n=!0,o=0;if("string"===typeof i&&v(i.charCodeAt(0))){++o;const e=i.length;e>1&&v(i.charCodeAt(1))&&(++o,e>2&&(v(i.charCodeAt(2))?++o:n=!1))}if(n){while(o=2&&(t=`\\${t.slice(o)}`)}return C.normalize(t)},relative(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";const i=C.resolve(e),n=C.resolve(t);if(i===n)return"";if(e=i.toLowerCase(),t=n.toLowerCase(),e===t)return"";let o=0;while(oo&&e.charCodeAt(s-1)===d)s--;const r=s-o;let a=0;while(aa&&t.charCodeAt(l-1)===d)l--;const c=l-a,u=ru){if(t.charCodeAt(a+g)===d)return n.slice(a+g+1);if(2===g)return n.slice(a+g)}r>u&&(e.charCodeAt(o+g)===d?h=g:2===g&&(h=3)),-1===h&&(h=0)}let p="";for(g=o+h+1;g<=s;++g)g!==s&&e.charCodeAt(g)!==d||(p+=0===p.length?"..":"\\..");return a+=h,p.length>0?`${p}${n.slice(a,l)}`:(n.charCodeAt(a)===d&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=C.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===d){if(t.charCodeAt(1)===d){const e=t.charCodeAt(2);if(e!==h&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(b(t.charCodeAt(0))&&t.charCodeAt(1)===u&&t.charCodeAt(2)===d)return`\\\\?\\${t}`;return e},dirname(e){f(e,"path");const t=e.length;if(0===t)return".";let i=-1,n=0;const o=e.charCodeAt(0);if(1===t)return v(o)?e:".";if(v(o)){if(i=n=1,v(e.charCodeAt(1))){let o=2,s=o;while(o2&&v(e.charCodeAt(2))?3:2,n=i);let s=-1,r=!0;for(let a=t-1;a>=n;--a)if(v(e.charCodeAt(a))){if(!r){s=a;break}}else r=!1;if(-1===s){if(-1===i)return".";s=i}return e.slice(0,s)},basename(e,t){void 0!==t&&f(t,"ext"),f(e,"path");let i,n=0,o=-1,s=!0;if(e.length>=2&&b(e.charCodeAt(0))&&e.charCodeAt(1)===u&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){const l=e.charCodeAt(i);if(v(l)){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1===--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=n;--i)if(v(e.charCodeAt(i))){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){f(e,"path");let t=0,i=-1,n=0,o=-1,s=!0,r=0;e.length>=2&&e.charCodeAt(1)===u&&b(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(v(t)){if(!s){n=a+1;break}}else-1===o&&(s=!1,o=a+1),t===l?-1===i?i=a:1!==r&&(r=1):-1!==i&&(r=-1)}return-1===i||-1===o||0===r||1===r&&i===o-1&&i===n+1?"":e.slice(i,o)},format:w.bind(null,"\\"),parse(e){f(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let n=0,o=e.charCodeAt(0);if(1===i)return v(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(v(o)){if(n=1,v(e.charCodeAt(1))){let t=2,o=t;while(t0&&(t.root=e.slice(0,n));let s=-1,r=n,a=-1,c=!0,d=e.length-1,h=0;for(;d>=n;--d)if(o=e.charCodeAt(d),v(o)){if(!c){r=d+1;break}}else-1===a&&(c=!1,a=d+1),o===l?-1===s?s=d:1!==h&&(h=1):-1!==s&&(h=-1);return-1!==a&&(-1===s||0===h||1===h&&s===a-1&&s===r+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,s),t.base=e.slice(r,a),t.ext=e.slice(s,a))),t.dir=r>0&&r!==n?e.slice(0,r-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},S=(()=>{if(m){const e=/\\/g;return()=>{const t=n.Vj().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>n.Vj()})(),x={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){const o=n>=0?e[n]:S();f(o,"path"),0!==o.length&&(t=`${o}/${t}`,i=o.charCodeAt(0)===c)}return t=y(t,!i,"/",_),i?`/${t}`:t.length>0?t:"."},normalize(e){if(f(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,i=e.charCodeAt(e.length-1)===c;return e=y(e,!t,"/",_),0===e.length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return f(e,"path"),e.length>0&&e.charCodeAt(0)===c},join(...e){if(0===e.length)return".";let t;for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":x.normalize(t)},relative(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";if(e=x.resolve(e),t=x.resolve(t),e===t)return"";const i=1,n=e.length,o=n-i,s=1,r=t.length-s,a=oa){if(t.charCodeAt(s+d)===c)return t.slice(s+d+1);if(0===d)return t.slice(s+d)}else o>a&&(e.charCodeAt(i+d)===c?l=d:0===d&&(l=0));let u="";for(d=i+l+1;d<=n;++d)d!==n&&e.charCodeAt(d)!==c||(u+=0===u.length?"..":"/..");return`${u}${t.slice(s+l)}`},toNamespacedPath(e){return e},dirname(e){if(f(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let i=-1,n=!0;for(let o=e.length-1;o>=1;--o)if(e.charCodeAt(o)===c){if(!n){i=o;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&f(t,"ext"),f(e,"path");let i,n=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===c){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1===--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===c){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){f(e,"path");let t=-1,i=0,n=-1,o=!0,s=0;for(let r=e.length-1;r>=0;--r){const a=e.charCodeAt(r);if(a!==c)-1===n&&(o=!1,n=r+1),a===l?-1===t?t=r:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){i=r+1;break}}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===i+1?"":e.slice(t,n)},format:w.bind(null,"/"),parse(e){f(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===c;let n;i?(t.root="/",n=1):n=0;let o=-1,s=0,r=-1,a=!0,d=e.length-1,u=0;for(;d>=n;--d){const t=e.charCodeAt(d);if(t!==c)-1===r&&(a=!1,r=d+1),t===l?-1===o?o=d:1!==u&&(u=1):-1!==o&&(u=-1);else if(!a){s=d+1;break}}if(-1!==r){const n=0===s&&i?1:s;-1===o||0===u||1===u&&o===r-1&&o===s+1?t.base=t.name=e.slice(n,r):(t.name=e.slice(n,o),t.base=e.slice(n,r),t.ext=e.slice(o,r))}return s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};x.win32=C.win32=C,x.posix=C.posix=x;const k=m?C.normalize:x.normalize,L=m?C.resolve:x.resolve,E=m?C.relative:x.relative,N=m?C.dirname:x.dirname,D=m?C.basename:x.basename,T=m?C.extname:x.extname,I=m?C.sep:x.sep},47606:(e,t,i)=>{"use strict";i.d(t,{$L:()=>T,Dt:()=>K,ED:()=>L,G6:()=>$,IJ:()=>N,OS:()=>H,dK:()=>M,dz:()=>E,fn:()=>B,gn:()=>A,i7:()=>z,qB:()=>R,r:()=>j,tY:()=>D,tq:()=>O,un:()=>q,vU:()=>U});var n,o=i(25206);const s="en";let r,a,l=!1,c=!1,d=!1,u=!1,h=!1,g=!1,p=!1,f=!1,m=!1,v=!1,_=s,b=null,y=null;const w=globalThis;let C;"undefined"!==typeof w.vscode&&"undefined"!==typeof w.vscode.process?C=w.vscode.process:"undefined"!==typeof process&&(C=process);const S="string"===typeof(null===(n=null===C||void 0===C?void 0:C.versions)||void 0===n?void 0:n.electron),x=S&&"renderer"===(null===C||void 0===C?void 0:C.type);if("object"===typeof C){l="win32"===C.platform,c="darwin"===C.platform,d="linux"===C.platform,u=d&&!!C.env["SNAP"]&&!!C.env["SNAP_REVISION"],p=S,m=!!C.env["CI"]||!!C.env["BUILD_ARTIFACTSTAGINGDIRECTORY"],r=s,_=s;const e=C.env["VSCODE_NLS_CONFIG"];if(e)try{const t=JSON.parse(e),i=t.availableLanguages["*"];r=t.locale,b=t.osLocale,_=i||s,y=t._translationsConfigFile}catch(G){}h=!0}else if("object"!==typeof navigator||x)console.error("Unable to resolve platform.");else{a=navigator.userAgent,l=a.indexOf("Windows")>=0,c=a.indexOf("Macintosh")>=0,f=(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,d=a.indexOf("Linux")>=0,v=(null===a||void 0===a?void 0:a.indexOf("Mobi"))>=0,g=!0;const e=o.aj(o.NC({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"));r=e||s,_=r,b=navigator.language}let k=0;c?k=1:l?k=3:d&&(k=2);const L=l,E=c,N=d,D=h,T=g,I=g&&"function"===typeof w.importScripts,R=I?w.origin:void 0,A=f,O=v,P=a,M=_,F="function"===typeof w.postMessage&&!w.importScripts,B=(()=>{if(F){const e=[];w.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i{const n=++t;e.push({id:n,callback:i}),w.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),H=c||f?2:l?1:3;let W=!0,V=!1;function j(){if(!V){V=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);W=513===t[0]}return W}const z=!!(P&&P.indexOf("Chrome")>=0),U=!!(P&&P.indexOf("Firefox")>=0),$=!!(!z&&P&&P.indexOf("Safari")>=0),q=!!(P&&P.indexOf("Edg/")>=0),K=!!(P&&P.indexOf("Android")>=0)},93962:(e,t,i)=>{"use strict";i.d(t,{Jv:()=>l,OB:()=>a,Vj:()=>r});var n=i(47606);let o;const s=globalThis.vscode;if("undefined"!==typeof s&&"undefined"!==typeof s.process){const e=s.process;o={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else o="undefined"!==typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env["VSCODE_CWD"]||process.cwd()}}:{get platform(){return n.ED?"win32":n.dz?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const r=o.cwd,a=o.env,l=o.platform},68801:(e,t,i)=>{"use strict";var n;i.d(t,{e:()=>n}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function i(e){return e.end-e.start<=0}function n(e,n){return!i(t(e,n))}function o(e,t){const n=[],o={start:e.start,end:Math.min(t.start,e.end)},s={start:Math.max(t.end,e.start),end:e.end};return i(o)||n.push(o),i(s)||n.push(s),n}e.intersect=t,e.isEmpty=i,e.intersects=n,e.relativeComplement=o}(n||(n={}))},21230:(e,t,i)=>{"use strict";i.d(t,{AH:()=>_,DZ:()=>f,EZ:()=>p,Hx:()=>g,SF:()=>u,Vb:()=>S,Vo:()=>v,XX:()=>m,Xy:()=>h,i3:()=>y,lX:()=>b,z_:()=>c});var n=i(1535),o=i(50200),s=i(19912),r=i(47606),a=i(61720),l=i(95896);function c(e){return(0,l.q)(e,!0)}class d{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,a.qu)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===o.lg.file)return n.KM(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(w(e.authority,t.authority))return n.KM(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.o.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return s.KR.basename(e.path)}extname(e){return s.KR.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===o.lg.file?t=l.o.file(s.XX(c(e))).path:(t=s.KR.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===o.lg.file?l.o.file(s.Fv(c(e))).path:s.KR.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!w(e.authority,t.authority))return;if(e.scheme===o.lg.file){const i=s.Gf(c(e),c(t));return r.ED?n.ej(i):i}let i=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,a.length);en.yj(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.ir){return C(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.ir){let i=!1;if(e.scheme===o.lg.file){const o=c(e);i=void 0!==o&&o.length===n.yj(o).length&&o[o.length-1]===t}else{t="/";const n=e.path;i=1===n.length&&47===n.charCodeAt(n.length-1)}return i||C(e,t)?e:e.with({path:e.path+"/"})}}const u=new d((()=>!1)),h=(new d((e=>e.scheme!==o.lg.file||!r.IJ)),new d((e=>!0)),u.isEqual.bind(u)),g=(u.isEqualOrParent.bind(u),u.getComparisonKey.bind(u),u.basenameOrAuthority.bind(u)),p=u.basename.bind(u),f=u.extname.bind(u),m=u.dirname.bind(u),v=u.joinPath.bind(u),_=u.normalizePath.bind(u),b=u.relativePath.bind(u),y=u.resolvePath.bind(u),w=(u.isAbsolutePath.bind(u),u.isEqualAuthority.bind(u)),C=u.hasTrailingPathSeparator.bind(u);u.removeTrailingPathSeparator.bind(u),u.addTrailingPathSeparator.bind(u);var S;(function(e){function t(t){const i=new Map,n=t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";"));n.split(";").forEach((e=>{const[t,n]=e.split(":");t&&n&&i.set(t,n)}));const o=t.path.substring(0,t.path.indexOf(";"));return o&&i.set(e.META_DATA_MIME,o),i}e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=t})(S||(S={}))},4225:(e,t,i)=>{"use strict";i.d(t,{Rm:()=>r});var n=i(11271),o=i(70959);class s{constructor(e,t,i,n,o,s,r){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,n|=0,o|=0,s|=0,r|=0),this.rawScrollLeft=n,this.rawScrollTop=r,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),o<0&&(o=0),r+o>s&&(r=s-o),r<0&&(r=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=o,this.scrollHeight=s,this.scrollTop=r}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new s(this._forceIntegerValues,"undefined"!==typeof e.width?e.width:this.width,"undefined"!==typeof e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof e.height?e.height:this.height,"undefined"!==typeof e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new s(this._forceIntegerValues,this.width,this.scrollWidth,"undefined"!==typeof e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,s=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:o,heightChanged:s,scrollHeightChanged:r,scrollTopChanged:a}}}class r extends o.JT{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new n.Q5),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new s(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var i;const n=this._state.withScrollDimensions(e,t);this._setState(n,Boolean(this._smoothScrolling)),null===(i=this._smoothScrolling)||void 0===i||i.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;n=t?new d(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=d.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}hasPendingScrollAnimation(){return Boolean(this._smoothScrolling)}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function l(e,t){const i=t-e;return function(t){return e+i*h(t)}}function c(e,t,i){return function(n){return n2.5*i){let n,o;return e{"use strict";i.d(t,{Z:()=>s});var n,o=i(61720);(function(e){e[e["Ignore"]=0]="Ignore",e[e["Info"]=1]="Info",e[e["Warning"]=2]="Warning",e[e["Error"]=3]="Error"})(n||(n={})),function(e){const t="error",i="warning",n="warn",s="info",r="ignore";function a(r){return r?o.qq(t,r)?e.Error:o.qq(i,r)||o.qq(n,r)?e.Warning:o.qq(s,r)?e.Info:e.Ignore:e.Ignore}function l(n){switch(n){case e.Error:return t;case e.Warning:return i;case e.Info:return s;default:return r}}e.fromValue=a,e.toString=l}(n||(n={}));const s=n},96729:(e,t,i)=>{"use strict";i.d(t,{G:()=>o});const n=globalThis.performance&&"function"===typeof globalThis.performance.now;class o{static create(e){return new o(e)}constructor(e){this._now=n&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},61720:(e,t,i)=>{"use strict";i.d(t,{$i:()=>Z,B4:()=>de,C8:()=>X,Fw:()=>y,GF:()=>v,HO:()=>z,IO:()=>_,J_:()=>U,K7:()=>J,Kw:()=>ie,LC:()=>w,Mh:()=>A,P1:()=>O,PJ:()=>ne,Qe:()=>Q,R1:()=>m,T5:()=>N,TT:()=>k,Ut:()=>K,V8:()=>C,W1:()=>V,WU:()=>l,YK:()=>M,YU:()=>d,ZG:()=>P,ZH:()=>B,ZK:()=>ue,ab:()=>Y,c1:()=>ee,df:()=>T,ec:()=>u,fA:()=>c,fy:()=>h,j3:()=>g,j_:()=>E,m5:()=>r,mK:()=>D,oH:()=>ae,oL:()=>p,ok:()=>R,ow:()=>S,qq:()=>I,qu:()=>x,rL:()=>F,uS:()=>te,un:()=>f,uq:()=>b,vH:()=>j,vU:()=>he,zY:()=>L});var n,o=i(60857),s=i(21815);function r(e){return!e||"string"!==typeof e||0===e.trim().length}const a=/{(\d+)}/g;function l(e,...t){return 0===t.length?e:e.replace(a,(function(e,i){const n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]}))}function c(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function d(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function u(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function h(e,t=" "){const i=g(e,t);return p(i,t)}function g(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let n=0;while(e.indexOf(t,n)===n)n+=i;return e.substring(n)}function p(e,t){if(!e||!t)return e;const i=t.length,n=e.length;if(0===i||0===n)return e;let o=n,s=-1;while(1){if(s=e.lastIndexOf(t,o-1),-1===s||s+i!==o)break;if(0===s)return"";o=s}return e.substring(0,o)}function f(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function m(e){return e.replace(/\*/g,"")}function v(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=u(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function _(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;const t=e.exec("");return!(!t||0!==e.lastIndex)}function b(e){return e.split(/\r\n|\r|\n/)}function y(e){var t;const i=[],n=e.split(/(\r\n|\r|\n)/);for(let o=0;o=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function x(e,t){return et?1:0}function k(e,t,i=0,n=e.length,o=0,s=t.length){for(;is)return 1}const r=n-i,a=s-o;return ra?1:0}function L(e,t){return E(e,t,0,e.length,0,t.length)}function E(e,t,i=0,n=e.length,o=0,s=t.length){for(;i=128||a>=128)return k(e.toLowerCase(),t.toLowerCase(),i,n,o,s);D(r)&&(r-=32),D(a)&&(a-=32);const l=r-a;if(0!==l)return l}const r=n-i,a=s-o;return ra?1:0}function N(e){return e>=48&&e<=57}function D(e){return e>=97&&e<=122}function T(e){return e>=65&&e<=90}function I(e,t){return e.length===t.length&&0===E(e,t)}function R(e,t){const i=t.length;return!(t.length>e.length)&&0===E(e,t,0,i)}function A(e,t){const i=Math.min(e.length,t.length);let n;for(n=0;n1){const n=e.charCodeAt(t-2);if(P(n))return F(n,i)}return i}class W{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=H(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=B(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class V{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new W(e,t)}nextGraphemeLength(){const e=se.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.nextCodePoint());while(!t.eol()){const i=t.offset,o=e.getGraphemeBreakType(t.nextCodePoint());if(oe(n,o)){t.setOffset(i);break}n=o}return t.offset-i}prevGraphemeLength(){const e=se.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.prevCodePoint());while(t.offset>0){const i=t.offset,o=e.getGraphemeBreakType(t.prevCodePoint());if(oe(o,n)){t.setOffset(i);break}n=o}return i-t.offset}eol(){return this._iterator.eol()}}function j(e,t){const i=new V(e,t);return i.nextGraphemeLength()}function z(e,t){const i=new V(e,t);return i.prevGraphemeLength()}function U(e,t){t>0&&M(e.charCodeAt(t))&&t--;const i=t+j(e,t),n=i-z(e,i);return[n,i]}let $;function q(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function K(e){return $||($=q()),$.test(e)}const G=/^[\t\n\r\x20-\x7E]*$/;function Z(e){return G.test(e)}const Q=/[\u2028\u2029]/;function Y(e){return Q.test(e)}function J(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function X(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const ee=String.fromCharCode(65279);function te(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function ie(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function ne(e){const t=26;return e%=2*t,et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}function re(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function ae(e,t){if(0===e)return 0;const i=le(e,t);if(void 0!==i)return i;const n=new W(t,e);return n.prevCodePoint(),n.offset}function le(e,t){const i=new W(t,e);let n=i.prevCodePoint();while(ce(n)||65039===n||8419===n){if(0===i.offset)return;n=i.prevCodePoint()}if(!X(n))return;let o=i.offset;if(o>0){const e=i.prevCodePoint();8205===e&&(o=i.offset)}return o}function ce(e){return 127995<=e&&e<=127999}se._INSTANCE=null;const de=" ";class ue{static getInstance(e){return n.cache.get(Array.from(e))}static getLocales(){return n._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}n=ue,ue.ambiguousCharacterData=new s.o((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),ue.cache=new o.t((e=>{function t(e){const t=new Map;for(let i=0;i!e.startsWith("_")&&e in s));0===a.length&&(a=["_default"]);for(const n of a){const e=t(s[n]);r=o(r,e)}const l=t(s["_common"]),c=i(l,r);return new n(c)})),ue._locales=new s.o((()=>Object.keys(n.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class he{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(he.getRawData())),this._data}static isInvisibleCharacter(e){return he.getData().has(e)}static get codePoints(){return he.getData()}}he._data=void 0},65338:(e,t,i)=>{"use strict";i.d(t,{n:()=>n});const n=Symbol("MicrotaskDelay")},17141:(e,t,i)=>{"use strict";i.d(t,{Id:()=>c});var n=i(61720);class o{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to!1),t=(()=>!1)){return new c(new a(e,t))}static forStrings(){return new c(new o)}static forConfigKeys(){return new c(new s)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new l,this._root.segment=i.value());const o=[];n=this._root;while(1){const e=i.cmp(n.segment);if(e>0)n.left||(n.left=new l,n.left.segment=i.value()),o.push([-1,n]),n=n.left;else if(e<0)n.right||(n.right=new l,n.right.segment=i.value()),o.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new l,n.mid.segment=i.value()),o.push([0,n]),n=n.mid}}const s=n.value;n.value=t,n.key=e;for(let r=o.length-1;r>=0;r--){const e=o[r][1];e.updateHeight();const t=e.balanceFactor();if(t<-1||t>1){const t=o[r][0],i=o[r+1][0];if(1===t&&1===i)o[r][1]=e.rotateLeft();else if(-1===t&&-1===i)o[r][1]=e.rotateRight();else if(1===t&&-1===i)e.right=o[r+1][1]=o[r+1][1].rotateRight(),o[r][1]=e.rotateLeft();else{if(-1!==t||1!==i)throw new Error;e.left=o[r+1][1]=o[r+1][1].rotateLeft(),o[r][1]=e.rotateRight()}if(r>0)switch(o[r-1][0]){case-1:o[r-1][1].left=o[r][1];break;case 1:o[r-1][1].right=o[r][1];break;case 0:o[r-1][1].mid=o[r][1];break}else this._root=o[0][1]}}return s}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;while(i){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===(null===t||void 0===t?void 0:t.value)&&void 0===(null===t||void 0===t?void 0:t.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),o=[];let s=this._root;while(s){const e=n.cmp(s.segment);if(e>0)o.push([-1,s]),s=s.left;else if(e<0)o.push([1,s]),s=s.right;else{if(!n.hasNext())break;n.next(),o.push([0,s]),s=s.mid}}if(s){if(t?(s.left=void 0,s.mid=void 0,s.right=void 0,s.height=1):(s.key=void 0,s.value=void 0),!s.mid&&!s.value)if(s.left&&s.right){const e=this._min(s.right);if(e.key){const{key:t,value:i,segment:n}=e;this._delete(e.key,!1),s.key=t,s.value=i,s.segment=n}}else{const e=null!==(i=s.left)&&void 0!==i?i:s.right;if(o.length>0){const[t,i]=o[o.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e;break}}else this._root=e}for(let e=o.length-1;e>=0;e--){const t=o[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),o[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),o[e][1]=t.rotateRight()),e>0)switch(o[e-1][0]){case-1:o[e-1][1].left=o[e][1];break;case 1:o[e-1][1].right=o[e][1];break;case 0:o[e-1][1].mid=o[e][1];break}else this._root=o[0][1]}}}_min(e){while(e.left)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,n=this._root;while(n){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let n=this._root;while(n){const e=i.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!i.hasNext())return n.mid?this._entries(n.mid):t?n.value:void 0;i.next(),n=n.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}},99588:(e,t,i)=>{"use strict";i.d(t,{k:()=>o});var n,o,s=i(8419);(function(e){function t(e){return e&&"object"===typeof e&&"string"===typeof e.id}e.isThemeColor=t})(n||(n={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){const n=t.exec(e.id);if(!n)return i(s.l.error);const[,o,r]=n,a=["codicon","codicon-"+o];return r&&a.push("codicon-modifier-"+r.substring(1)),a}function o(e){return i(e).join(" ")}function r(e){return"."+i(e).join(".")}function a(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||n.isThemeColor(e.color))}e.asClassNameArray=i,e.asClassName=o,e.asCSSSelector=r,e.isThemeIcon=a;const l=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);function c(e){const t=l.exec(e);if(!t)return;const[,i]=t;return{id:i}}function d(e){return{id:e}}function u(e,t){let i=e.id;const n=i.lastIndexOf("~");return-1!==n&&(i=i.substring(0,n)),t&&(i=`${i}~${t}`),{id:i}}function h(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)}function g(e,t){var i,n;return e.id===t.id&&(null===(i=e.color)||void 0===i?void 0:i.id)===(null===(n=t.color)||void 0===n?void 0:n.id)}e.fromString=c,e.fromId=d,e.modify=u,e.getModifier=h,e.isEqual=g}(o||(o={}))},55455:(e,t,i)=>{"use strict";function n(e){return"string"===typeof e}function o(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){const t=Object.getPrototypeOf(Uint8Array);return"object"===typeof e&&e instanceof t}function r(e){return"number"===typeof e&&!isNaN(e)}function a(e){return!!e&&"function"===typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function c(e){return"undefined"===typeof e}function d(e){return!u(e)}function u(e){return c(e)||null===e}function h(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(u(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"===typeof e}function f(e,t){const i=Math.min(e.length,t.length);for(let n=0;nd,D8:()=>f,HD:()=>n,Jp:()=>u,Kn:()=>o,TW:()=>a,cW:()=>g,fU:()=>s,hj:()=>r,jn:()=>l,mf:()=>p,o8:()=>c,p_:()=>h})},47396:(e,t,i)=>{"use strict";function n(e){return e<0?0:e>255?255:0|e}function o(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{A:()=>o,K:()=>n})},95896:(e,t,i)=>{"use strict";i.d(t,{o:()=>p,q:()=>y});var n=i(19912),o=i(47606);const s=/^\w[\w\d+.-]*$/,r=/^\//,a=/^\/\//;function l(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}function c(e,t){return e||t?e:"file"}function d(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h;break}return t}const u="",h="/",g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{static isUri(e){return e instanceof p||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,i,n,o,s=!1){"object"===typeof e?(this.scheme=e.scheme||u,this.authority=e.authority||u,this.path=e.path||u,this.query=e.query||u,this.fragment=e.fragment||u):(this.scheme=c(e,s),this.authority=t||u,this.path=d(this.scheme,i||u),this.query=n||u,this.fragment=o||u,l(this,s))}get fsPath(){return y(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=u),void 0===i?i=this.authority:null===i&&(i=u),void 0===n?n=this.path:null===n&&(n=u),void 0===o?o=this.query:null===o&&(o=u),void 0===s?s=this.fragment:null===s&&(s=u),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&s===this.fragment?this:new m(t,i,n,o,s)}static parse(e,t=!1){const i=g.exec(e);return i?new m(i[2]||u,x(i[4]||u),x(i[5]||u),x(i[7]||u),x(i[9]||u),t):new m(u,u,u,u,u)}static file(e){let t=u;if(o.ED&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const i=e.indexOf(h,2);-1===i?(t=e.substring(2),e=h):(t=e.substring(2,i),e=e.substring(i)||h)}return new m("file",t,e,u,u)}static from(e,t){const i=new m(e.scheme,e.authority,e.path,e.query,e.fragment,t);return i}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=o.ED&&"file"===e.scheme?p.file(n.Ku.join(y(e,!0),...t)).path:n.KR.join(e.path,...t),e.with({path:i})}toString(e=!1){return w(this,e)}toJSON(){return this}static revive(e){var t,i;if(e){if(e instanceof p)return e;{const n=new m(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===f&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}return e}}const f=o.ED?1:void 0;class m extends p{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath}toString(e=!1){return e?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const v={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function _(e,t,i){let n,o=-1;for(let s=0;s=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||45===r||46===r||95===r||126===r||t&&47===r||i&&91===r||i&&93===r||i&&58===r)-1!==o&&(n+=encodeURIComponent(e.substring(o,s)),o=-1),void 0!==n&&(n+=e.charAt(s));else{void 0===n&&(n=e.substr(0,s));const t=v[r];void 0!==t?(-1!==o&&(n+=encodeURIComponent(e.substring(o,s)),o=-1),n+=t):-1===o&&(o=s)}}return-1!==o&&(n+=encodeURIComponent(e.substring(o))),void 0!==n?n:e}function b(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o.ED&&(i=i.replace(/\//g,"\\")),i}function w(e,t){const i=t?b:_;let n="",{scheme:o,authority:s,path:r,query:a,fragment:l}=e;if(o&&(n+=o,n+=":"),(s||"file"===o)&&(n+=h,n+=h),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?n+=i(t,!1,!1):(n+=i(t.substr(0,e),!1,!1),n+=":",n+=i(t.substr(e+1),!1,!0)),n+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?n+=i(s,!1,!0):(n+=i(s.substr(0,e),!1,!0),n+=s.substr(e))}if(r){if(r.length>=3&&47===r.charCodeAt(0)&&58===r.charCodeAt(2)){const e=r.charCodeAt(1);e>=65&&e<=90&&(r=`/${String.fromCharCode(e+32)}:${r.substr(3)}`)}else if(r.length>=2&&58===r.charCodeAt(1)){const e=r.charCodeAt(0);e>=65&&e<=90&&(r=`${String.fromCharCode(e+32)}:${r.substr(2)}`)}n+=i(r,!0,!1)}return a&&(n+="?",n+=i(a,!1,!1)),l&&(n+="#",n+=t?l:_(l,!1,!1)),n}function C(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}const S=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(e){return e.match(S)?e.replace(S,(e=>C(e))):e}},7091:(e,t,i)=>{"use strict";i.d(t,{R:()=>n});const n=function(){if("object"===typeof crypto&&"function"===typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);let e;e="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t{"use strict";i.d(t,{H:()=>p});var n=i(30630),o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of r(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; +const{entries:n,setPrototypeOf:o,isFrozen:r,getPrototypeOf:s,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:c,create:d}=Object,{apply:u,construct:h}="undefined"!==typeof Reflect&&Reflect;u||(u=function(e,t,i){return e.apply(t,i)}),l||(l=function(e){return e}),c||(c=function(e){return e}),h||(h=function(e,t){return new e(...t)});const g=x(Array.prototype.forEach),p=x(Array.prototype.pop),f=x(Array.prototype.push),m=x(String.prototype.toLowerCase),v=x(String.prototype.toString),_=x(String.prototype.match),b=x(String.prototype.replace),y=x(String.prototype.indexOf),w=x(String.prototype.trim),C=x(RegExp.prototype.test),S=k(TypeError);function x(e){return function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o/gm),j=c(/\${[\w\W]*}/gm),z=c(/^data-[\-\w.\u00B7-\uFFFF]/),U=c(/^aria-[\-\w]+$/),$=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=c(/^(?:\w+script|data):/i),K=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=c(/^html$/i);var Z=Object.freeze({__proto__:null,MUSTACHE_EXPR:W,ERB_EXPR:V,TMPLIT_EXPR:j,DATA_ATTR:z,ARIA_ATTR:U,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:K,DOCTYPE_NAME:G});const Q=()=>"undefined"===typeof window?null:window,Y=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML(e){return e},createScriptURL(e){return e}})}catch(r){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function J(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q();const t=e=>J(e);if(t.version="3.0.5",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;const i=e.document,o=i.currentScript;let{document:r}=e;const{DocumentFragment:s,HTMLTemplateElement:a,Node:c,Element:d,NodeFilter:u,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:x,DOMParser:k,trustedTypes:W}=e,V=d.prototype,j=N(V,"cloneNode"),z=N(V,"nextSibling"),U=N(V,"childNodes"),q=N(V,"parentNode");if("function"===typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let K,X="";const{implementation:ee,createNodeIterator:te,createDocumentFragment:ie,getElementsByTagName:ne}=r,{importNode:oe}=i;let re={};t.isSupported="function"===typeof n&&"function"===typeof q&&ee&&void 0!==ee.createHTMLDocument;const{MUSTACHE_EXPR:se,ERB_EXPR:ae,TMPLIT_EXPR:le,DATA_ATTR:ce,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:he}=Z;let{IS_ALLOWED_URI:ge}=Z,pe=null;const fe=L({},[...D,...T,...I,...A,...P]);let me=null;const ve=L({},[...M,...F,...B,...H]);let _e=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,ye=null,we=!0,Ce=!0,Se=!1,xe=!0,ke=!1,Le=!1,Ee=!1,Ne=!1,De=!1,Te=!1,Ie=!1,Re=!0,Ae=!1;const Oe="user-content-";let Pe=!0,Me=!1,Fe={},Be=null;const He=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let We=null;const Ve=L({},["audio","video","img","source","image","track"]);let je=null;const ze=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ue="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",qe="http://www.w3.org/1999/xhtml";let Ke=qe,Ge=!1,Ze=null;const Qe=L({},[Ue,$e,qe],v);let Ye;const Je=["application/xhtml+xml","text/html"],Xe="text/html";let et,tt=null;const it=r.createElement("form"),nt=function(e){return e instanceof RegExp||e instanceof Function},ot=function(e){if(!tt||tt!==e){if(e&&"object"===typeof e||(e={}),e=E(e),Ye=Ye=-1===Je.indexOf(e.PARSER_MEDIA_TYPE)?Xe:e.PARSER_MEDIA_TYPE,et="application/xhtml+xml"===Ye?v:m,pe="ALLOWED_TAGS"in e?L({},e.ALLOWED_TAGS,et):fe,me="ALLOWED_ATTR"in e?L({},e.ALLOWED_ATTR,et):ve,Ze="ALLOWED_NAMESPACES"in e?L({},e.ALLOWED_NAMESPACES,v):Qe,je="ADD_URI_SAFE_ATTR"in e?L(E(ze),e.ADD_URI_SAFE_ATTR,et):ze,We="ADD_DATA_URI_TAGS"in e?L(E(Ve),e.ADD_DATA_URI_TAGS,et):Ve,Be="FORBID_CONTENTS"in e?L({},e.FORBID_CONTENTS,et):He,be="FORBID_TAGS"in e?L({},e.FORBID_TAGS,et):{},ye="FORBID_ATTR"in e?L({},e.FORBID_ATTR,et):{},Fe="USE_PROFILES"in e&&e.USE_PROFILES,we=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,Le=e.WHOLE_DOCUMENT||!1,De=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,Re=!1!==e.SANITIZE_DOM,Ae=e.SANITIZE_NAMED_PROPS||!1,Pe=!1!==e.KEEP_CONTENT,Me=e.IN_PLACE||!1,ge=e.ALLOWED_URI_REGEXP||$,Ke=e.NAMESPACE||qe,_e=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(_e.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(Ce=!1),Te&&(De=!0),Fe&&(pe=L({},[...P]),me=[],!0===Fe.html&&(L(pe,D),L(me,M)),!0===Fe.svg&&(L(pe,T),L(me,F),L(me,H)),!0===Fe.svgFilters&&(L(pe,I),L(me,F),L(me,H)),!0===Fe.mathMl&&(L(pe,A),L(me,B),L(me,H))),e.ADD_TAGS&&(pe===fe&&(pe=E(pe)),L(pe,e.ADD_TAGS,et)),e.ADD_ATTR&&(me===ve&&(me=E(me)),L(me,e.ADD_ATTR,et)),e.ADD_URI_SAFE_ATTR&&L(je,e.ADD_URI_SAFE_ATTR,et),e.FORBID_CONTENTS&&(Be===He&&(Be=E(Be)),L(Be,e.FORBID_CONTENTS,et)),Pe&&(pe["#text"]=!0),Le&&L(pe,["html","head","body"]),pe.table&&(L(pe,["tbody"]),delete be.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');K=e.TRUSTED_TYPES_POLICY,X=K.createHTML("")}else void 0===K&&(K=Y(W,o)),null!==K&&"string"===typeof X&&(X=K.createHTML(""));l&&l(e),tt=e}},rt=L({},["mi","mo","mn","ms","mtext"]),st=L({},["foreignobject","desc","title","annotation-xml"]),at=L({},["title","style","font","a","script"]),lt=L({},T);L(lt,I),L(lt,R);const ct=L({},A);L(ct,O);const dt=function(e){let t=q(e);t&&t.tagName||(t={namespaceURI:Ke,tagName:"template"});const i=m(e.tagName),n=m(t.tagName);return!!Ze[e.namespaceURI]&&(e.namespaceURI===$e?t.namespaceURI===qe?"svg"===i:t.namespaceURI===Ue?"svg"===i&&("annotation-xml"===n||rt[n]):Boolean(lt[i]):e.namespaceURI===Ue?t.namespaceURI===qe?"math"===i:t.namespaceURI===$e?"math"===i&&st[n]:Boolean(ct[i]):e.namespaceURI===qe?!(t.namespaceURI===$e&&!st[n])&&(!(t.namespaceURI===Ue&&!rt[n])&&(!ct[i]&&(at[i]||!lt[i]))):!("application/xhtml+xml"!==Ye||!Ze[e.namespaceURI]))},ut=function(e){f(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(i){e.remove()}},ht=function(e,i){try{f(t.removed,{attribute:i.getAttributeNode(e),from:i})}catch(n){f(t.removed,{attribute:null,from:i})}if(i.removeAttribute(e),"is"===e&&!me[e])if(De||Te)try{ut(i)}catch(n){}else try{i.setAttribute(e,"")}catch(n){}},gt=function(e){let t,i;if(Ne)e=""+e;else{const t=_(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===Ye&&Ke===qe&&(e=''+e+"");const n=K?K.createHTML(e):e;if(Ke===qe)try{t=(new k).parseFromString(n,Ye)}catch(s){}if(!t||!t.documentElement){t=ee.createDocument(Ke,"template",null);try{t.documentElement.innerHTML=Ge?X:n}catch(s){}}const o=t.body||t.documentElement;return e&&i&&o.insertBefore(r.createTextNode(i),o.childNodes[0]||null),Ke===qe?ne.call(t,Le?"html":"body")[0]:Le?t.documentElement:o},pt=function(e){return te.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},ft=function(e){return e instanceof x&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof h)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},mt=function(e){return"object"===typeof c?e instanceof c:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},vt=function(e,i,n){re[e]&&g(re[e],(e=>{e.call(t,i,n,tt)}))},_t=function(e){let i;if(vt("beforeSanitizeElements",e,null),ft(e))return ut(e),!0;const n=et(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:n,allowedTags:pe}),e.hasChildNodes()&&!mt(e.firstElementChild)&&(!mt(e.content)||!mt(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return ut(e),!0;if(!pe[n]||be[n]){if(!be[n]&&yt(n)){if(_e.tagNameCheck instanceof RegExp&&C(_e.tagNameCheck,n))return!1;if(_e.tagNameCheck instanceof Function&&_e.tagNameCheck(n))return!1}if(Pe&&!Be[n]){const t=q(e)||e.parentNode,i=U(e)||e.childNodes;if(i&&t){const n=i.length;for(let o=n-1;o>=0;--o)t.insertBefore(j(i[o],!0),z(e))}}return ut(e),!0}return e instanceof d&&!dt(e)?(ut(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!C(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&3===e.nodeType&&(i=e.textContent,i=b(i,se," "),i=b(i,ae," "),i=b(i,le," "),e.textContent!==i&&(f(t.removed,{element:e.cloneNode()}),e.textContent=i)),vt("afterSanitizeElements",e,null),!1):(ut(e),!0)},bt=function(e,t,i){if(Re&&("id"===t||"name"===t)&&(i in r||i in it))return!1;if(Ce&&!ye[t]&&C(ce,t));else if(we&&C(de,t));else if(!me[t]||ye[t]){if(!(yt(e)&&(_e.tagNameCheck instanceof RegExp&&C(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&C(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t))||"is"===t&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&C(_e.tagNameCheck,i)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(i))))return!1}else if(je[t]);else if(C(ge,b(i,he,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(i,"data:")||!We[e]){if(Se&&!C(ue,b(i,he,"")));else if(i)return!1}else;return!0},yt=function(e){return e.indexOf("-")>0},wt=function(e){let i,n,o,r;vt("beforeSanitizeAttributes",e,null);const{attributes:s}=e;if(!s)return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};r=s.length;while(r--){i=s[r];const{name:c,namespaceURI:d}=i;if(n="value"===c?i.value:w(i.value),o=et(c),a.attrName=o,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,a),n=a.attrValue,a.forceKeepAttr)continue;if(ht(c,e),!a.keepAttr)continue;if(!xe&&C(/\/>/i,n)){ht(c,e);continue}ke&&(n=b(n,se," "),n=b(n,ae," "),n=b(n,le," "));const u=et(e.nodeName);if(bt(u,o,n)){if(!Ae||"id"!==o&&"name"!==o||(ht(c,e),n=Oe+n),K&&"object"===typeof W&&"function"===typeof W.getAttributeType)if(d);else switch(W.getAttributeType(u,o)){case"TrustedHTML":n=K.createHTML(n);break;case"TrustedScriptURL":n=K.createScriptURL(n);break}try{d?e.setAttributeNS(d,c,n):e.setAttribute(c,n),p(t.removed)}catch(l){}}}vt("afterSanitizeAttributes",e,null)},Ct=function e(t){let i;const n=pt(t);vt("beforeSanitizeShadowDOM",t,null);while(i=n.nextNode())vt("uponSanitizeShadowNode",i,null),_t(i)||(i.content instanceof s&&e(i.content),wt(i));vt("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(e){let n,o,r,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ge=!e,Ge&&(e="\x3c!--\x3e"),"string"!==typeof e&&!mt(e)){if("function"!==typeof e.toString)throw S("toString is not a function");if(e=e.toString(),"string"!==typeof e)throw S("dirty is not a string, aborting")}if(!t.isSupported)return e;if(Ee||ot(l),t.removed=[],"string"===typeof e&&(Me=!1),Me){if(e.nodeName){const t=et(e.nodeName);if(!pe[t]||be[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)n=gt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!De&&!ke&&!Le&&-1===e.indexOf("<"))return K&&Ie?K.createHTML(e):e;if(n=gt(e),!n)return De?null:Ie?X:""}n&&Ne&&ut(n.firstChild);const d=pt(Me?e:n);while(r=d.nextNode())_t(r)||(r.content instanceof s&&Ct(r.content),wt(r));if(Me)return e;if(De){if(Te){a=ie.call(n.ownerDocument);while(n.firstChild)a.appendChild(n.firstChild)}else a=n;return(me.shadowroot||me.shadowrootmode)&&(a=oe.call(i,a,!0)),a}let u=Le?n.outerHTML:n.innerHTML;return Le&&pe["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&C(G,n.ownerDocument.doctype.name)&&(u="\n"+u),ke&&(u=b(u,se," "),u=b(u,ae," "),u=b(u,le," ")),K&&Ie?K.createHTML(u):u},t.setConfig=function(e){ot(e),Ee=!0},t.clearConfig=function(){tt=null,Ee=!1},t.isValidAttribute=function(e,t,i){tt||ot({});const n=et(e),o=et(t);return bt(n,o,i)},t.addHook=function(e,t){"function"===typeof t&&(re[e]=re[e]||[],f(re[e],t))},t.removeHook=function(e){if(re[e])return p(re[e])},t.removeHooks=function(e){re[e]&&(re[e]=[])},t.removeAllHooks=function(){re={}},t}var X=J();X.version,X.isSupported;const ee=X.sanitize,te=(X.setConfig,X.clearConfig,X.isValidAttribute,X.addHook),ie=X.removeHook;X.removeHooks,X.removeAllHooks},9172:(e,t,i)=>{"use strict";i.d(t,{Y:()=>o});var n=i(11271);class o{get event(){return this.emitter.event}constructor(e,t,i){const o=e=>this.emitter.fire(e);this.emitter=new n.Q5({onWillAddFirstListener:()=>e.addEventListener(t,o,i),onDidRemoveLastListener:()=>e.removeEventListener(t,o,i)})}dispose(){this.emitter.dispose()}}},26090:(e,t,i)=>{"use strict";i.d(t,{X:()=>r,Z:()=>n});class n{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=o(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=o(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=o(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=o(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=o(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=o(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=o(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=o(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=o(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=o(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=o(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function o(e){return"number"===typeof e?`${e}px`:e}function r(e){return new n(e)}},73228:(e,t,i)=>{"use strict";i.d(t,{BO:()=>r,IY:()=>o,az:()=>s});var n=i(2548);function o(e,t={}){const i=s(t);return i.textContent=e,i}function r(e,t={}){const i=s(t);return l(i,c(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function s(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function l(e,t,i,o){let r;if(2===t.type)r=document.createTextNode(t.content||"");else if(3===t.type)r=document.createElement("b");else if(4===t.type)r=document.createElement("i");else if(7===t.type&&o)r=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");i.disposables.add(n.mu(e,"click",(e=>{i.callback(String(t.index),e)}))),r=e}else 8===t.type?r=document.createElement("br"):1===t.type&&(r=e);r&&e!==r&&e.appendChild(r),r&&Array.isArray(t.children)&&t.children.forEach((e=>{l(r,e,i,o)}))}function c(e,t){const i={type:1,children:[]};let n=0,o=i;const r=[],s=new a(e);while(!s.eos()){let e=s.next();const i="\\"===e&&0!==u(s.peek(),t);if(i&&(e=s.next()),!i&&d(e,t)&&e===s.peek()){s.advance(),2===o.type&&(o=r.pop());const i=u(e,t);if(o.type===i||5===o.type&&6===i)o=r.pop();else{const e={type:i,children:[]};5===i&&(e.index=n,n++),o.children.push(e),r.push(o),o=e}}else if("\n"===e)2===o.type&&(o=r.pop()),o.children.push({type:8});else if(2!==o.type){const t={type:2,content:e};o.children.push(t),r.push(o),o=t}else o.content+=e}return 2===o.type&&(o=r.pop()),r.length,i}function d(e,t){return 0!==u(e,t)}function u(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},75853:(e,t,i)=>{"use strict";i.d(t,{C:()=>r});var n=i(2548),o=i(70959);class r{constructor(){this._hooks=new o.SL,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,r,s){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=s;let a=e;try{e.setPointerCapture(t),this._hooks.add((0,o.OF)((()=>{try{e.releasePointerCapture(t)}catch(i){}})))}catch(l){a=n.Jj(e)}this._hooks.add(n.nm(a,n.tw.POINTER_MOVE,(e=>{e.buttons===i?(e.preventDefault(),this._pointerMoveCallback(e)):this.stopMonitoring(!0)}))),this._hooks.add(n.nm(a,n.tw.POINTER_UP,(e=>this.stopMonitoring(!0))))}}},45429:(e,t,i)=>{"use strict";i.d(t,{y:()=>h});var n=i(90882),o=i(56082),r=i(19321),s=i(47606);function a(e){if(e.charCode){const t=String.fromCharCode(e.charCode).toUpperCase();return o.kL.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(n.vU)switch(t){case 59:return 85;case 60:if(s.IJ)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(s.dz)return 57;break}else if(n.Pf){if(s.dz&&93===t)return 57;if(!s.dz&&92===t)return 57}return o.H_[t]||0}const l=s.dz?256:2048,c=512,d=1024,u=s.dz?2048:256;class h{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState("AltGraph"),this.keyCode=a(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=l),this.altKey&&(t|=c),this.shiftKey&&(t|=d),this.metaKey&&(t|=u),t|=e,t}_computeKeyCodeChord(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new r.$M(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},98162:(e,t,i)=>{"use strict";i.d(t,{ap:()=>L,et:()=>R});var n=i(2548),o=i(29739),r=i(9172),s=i(73228),a=i(45429),l=i(75467),c=i(66426),d=i(98642),u=i(11271),h=i(81478),g=i(96559),p=i(58247),f=i(21815),m=i(70959);let v={};(function(){function e(e,t){t(v)}e.amd=!0,function(t,i){"function"===typeof e&&e.amd?e(["exports"],i):"object"===typeof exports?i(exports):(t="undefined"!==typeof globalThis?globalThis:t||self,i(t.marked={}))}(this,(function(e){function t(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,n=new Array(t);i=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function a(t){e.defaults=t}e.defaults=s();var l=/[&<>"']/,c=/[&<>"']/g,d=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"},g=function(e){return h[e]};function p(e,t){if(t){if(l.test(e))return e.replace(c,g)}else if(d.test(e))return e.replace(u,g);return e}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(e){return e.replace(f,(function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var v=/(^|[^\[])\^/g;function _(e,t){e="string"===typeof e?e:e.source,t=t||"";var i={replace:function(t,n){return n=n.source||n,n=n.replace(v,"$1"),e=e.replace(t,n),i},getRegex:function(){return new RegExp(e,t)}};return i}var b=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function w(e,t,i){if(e){var n;try{n=decodeURIComponent(m(i)).replace(b,"").toLowerCase()}catch(o){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!y.test(i)&&(i=L(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(o){return null}return i}var C={},S=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/;function L(e,t){C[" "+e]||(S.test(e)?C[" "+e]=e+"/":C[" "+e]=T(e,"/",!0)),e=C[" "+e];var i=-1===e.indexOf(":");return"//"===t.substring(0,2)?i?t:e.replace(x,"$1")+t:"/"===t.charAt(0)?i?t:e.replace(k,"$1")+t:e+t}var E={exec:function(){}};function N(e){for(var t,i,n=1;n=0&&"\\"===i[o])n=!n;return n?"|":" |"})),n=i.split(/ \|/),o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else while(n.length1)1&t&&(i+=e),t>>=1,e+=e;return i+e}function O(e,t,i,n){var o=t.href,r=t.title?p(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var a={type:"link",raw:i,href:o,title:r,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,a}return{type:"image",raw:i,href:o,title:r,text:p(s)}}function P(e,t){var i=e.match(/^(\s+)(?:```)/);if(null===i)return t;var n=i[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);if(null===t)return e;var i=t[0];return i.length>=n.length?e.slice(n.length):e})).join("\n")}var M=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},i.code=function(e){var t=this.rules.block.code.exec(e);if(t){var i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:T(i,"\n")}}},i.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var i=t[0],n=P(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:n}}},i.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var i=t[2].trim();if(/#$/.test(i)){var n=T(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}},i.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},i.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var i=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}},i.list=function(e){var t=this.rules.block.list.exec(e);if(t){var i,n,o,s,a,l,c,d,u,h,g,p,f=t[1].trim(),m=f.length>1,v={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?"\\d{1,9}\\"+f.slice(-1):"\\"+f,this.options.pedantic&&(f=m?f:"[*+-]");var _=new RegExp("^( {0,3}"+f+")((?:[\t ][^\\n]*)?(?:\\n|$))");while(e){if(p=!1,!(t=_.exec(e)))break;if(this.rules.block.hr.test(e))break;if(i=t[0],e=e.substring(i.length),d=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(s=2,g=d.trimLeft()):(s=t[2].search(/[^ ]/),s=s>4?1:s,g=d.slice(s),s+=t[1].length),l=!1,!d&&/^ *$/.test(u)&&(i+=u+"\n",e=e.substring(u.length+1),p=!0),!p){var b=new RegExp("^ {0,"+Math.min(3,s-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),y=new RegExp("^ {0,"+Math.min(3,s-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),w=new RegExp("^ {0,"+Math.min(3,s-1)+"}(?:```|~~~)"),C=new RegExp("^ {0,"+Math.min(3,s-1)+"}#");while(e){if(h=e.split("\n",1)[0],d=h,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),w.test(d))break;if(C.test(d))break;if(b.test(d))break;if(y.test(e))break;if(d.search(/[^ ]/)>=s||!d.trim())g+="\n"+d.slice(s);else{if(l)break;g+="\n"+d}l||d.trim()||(l=!0),i+=h+"\n",e=e.substring(h.length+1)}}v.loose||(c?v.loose=!0:/\n *\n *$/.test(i)&&(c=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(g),n&&(o="[ ] "!==n[0],g=g.replace(/^\[[ xX]\] +/,""))),v.items.push({type:"list_item",raw:i,task:!!n,checked:o,loose:!1,text:g}),v.raw+=i}v.items[v.items.length-1].raw=i.trimRight(),v.items[v.items.length-1].text=g.trimRight(),v.raw=v.raw.trimRight();var S=v.items.length;for(a=0;a1)return!0}return!1}));!v.loose&&x.length&&k&&(v.loose=!0,v.items[a].loose=!0)}return v}},i.html=function(e){var t=this.rules.block.html.exec(e);if(t){var i={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){var n=this.options.sanitizer?this.options.sanitizer(t[0]):p(t[0]);i.type="paragraph",i.text=n,i.tokens=this.lexer.inline(n)}return i}},i.def=function(e){var t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));var i=t[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:i,raw:t[0],href:t[2],title:t[3]}}},i.table=function(e){var t=this.rules.block.table.exec(e);if(t){var i={type:"table",header:D(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=t[0];var n,o,r,s,a=i.align.length;for(n=0;n/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):p(t[0]):t[0]}},i.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var i=t[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;var n=T(i.slice(0,-1),"\\");if((i.length-n.length)%2===0)return}else{var o=I(t[2],"()");if(o>-1){var r=0===t[0].indexOf("!")?5:4,s=r+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,s).trim(),t[3]=""}}var a=t[2],l="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);c&&(a=c[1],l=c[3])}else l=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^$/.test(i)?a.slice(1):a.slice(1,-1)),O(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:l?l.replace(this.rules.inline._escapes,"$1"):l},t[0],this.lexer)}},i.reflink=function(e,t){var i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(n=t[n.toLowerCase()],!n||!n.href){var o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return O(i,n,i[0],this.lexer)}},i.emStrong=function(e,t,i){void 0===i&&(i="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!i.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var o=n[1]||n[2]||"";if(!o||o&&(""===i||this.rules.inline.punctuation.exec(i))){var r,s,a=n[0].length-1,l=a,c=0,d="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;d.lastIndex=0,t=t.slice(-1*e.length+a);while(null!=(n=d.exec(t)))if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],r)if(s=r.length,n[3]||n[4])l+=s;else if(!((n[5]||n[6])&&a%3)||(a+s)%3){if(l-=s,!(l>0)){if(s=Math.min(s,s+l+c),Math.min(a,s)%2){var u=e.slice(1,a+n.index+s);return{type:"em",raw:e.slice(0,a+n.index+s+1),text:u,tokens:this.lexer.inlineTokens(u)}}var h=e.slice(2,a+n.index+s-1);return{type:"strong",raw:e.slice(0,a+n.index+s+1),text:h,tokens:this.lexer.inlineTokens(h)}}}else c+=s}}},i.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var i=t[2].replace(/\n/g," "),n=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return n&&o&&(i=i.substring(1,i.length-1)),i=p(i,!0),{type:"codespan",raw:t[0],text:i}}},i.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},i.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}},i.autolink=function(e,t){var i,n,o=this.rules.inline.autolink.exec(e);if(o)return"@"===o[2]?(i=p(this.options.mangle?t(o[1]):o[1]),n="mailto:"+i):(i=p(o[1]),n=i),{type:"link",raw:o[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},i.url=function(e,t){var i;if(i=this.rules.inline.url.exec(e)){var n,o;if("@"===i[2])n=p(this.options.mangle?t(i[0]):i[0]),o="mailto:"+n;else{var r;do{r=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(r!==i[0]);n=p(i[0]),o="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}},i.inlineText=function(e,t){var i,n=this.rules.inline.text.exec(e);if(n)return i=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):p(n[0]):n[0]:p(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}},t}(),F={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:E,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};F.def=_(F.def).replace("label",F._label).replace("title",F._title).getRegex(),F.bullet=/(?:[*+-]|\d{1,9}[.)])/,F.listItemStart=_(/^( *)(bull) */).replace("bull",F.bullet).getRegex(),F.list=_(F.list).replace(/bull/g,F.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+F.def.source+")").getRegex(),F._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",F._comment=/|$)/,F.html=_(F.html,"i").replace("comment",F._comment).replace("tag",F._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),F.paragraph=_(F._paragraph).replace("hr",F.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",F._tag).getRegex(),F.blockquote=_(F.blockquote).replace("paragraph",F.paragraph).getRegex(),F.normal=N({},F),F.gfm=N({},F.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),F.gfm.table=_(F.gfm.table).replace("hr",F.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",F._tag).getRegex(),F.gfm.paragraph=_(F._paragraph).replace("hr",F.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",F.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",F._tag).getRegex(),F.pedantic=N({},F.normal,{html:_("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",F._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:E,paragraph:_(F.normal._paragraph).replace("hr",F.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",F.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var B={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:E,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:E,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}B._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",B.punctuation=_(B.punctuation).replace(/punctuation/g,B._punctuation).getRegex(),B.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,B.escapedEmSt=/\\\*|\\_/g,B._comment=_(F._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),B.emStrong.lDelim=_(B.emStrong.lDelim).replace(/punct/g,B._punctuation).getRegex(),B.emStrong.rDelimAst=_(B.emStrong.rDelimAst,"g").replace(/punct/g,B._punctuation).getRegex(),B.emStrong.rDelimUnd=_(B.emStrong.rDelimUnd,"g").replace(/punct/g,B._punctuation).getRegex(),B._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,B._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,B._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,B.autolink=_(B.autolink).replace("scheme",B._scheme).replace("email",B._email).getRegex(),B._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,B.tag=_(B.tag).replace("comment",B._comment).replace("attribute",B._attribute).getRegex(),B._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,B._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,B._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,B.link=_(B.link).replace("label",B._label).replace("href",B._href).replace("title",B._title).getRegex(),B.reflink=_(B.reflink).replace("label",B._label).replace("ref",F._label).getRegex(),B.nolink=_(B.nolink).replace("ref",F._label).getRegex(),B.reflinkSearch=_(B.reflinkSearch,"g").replace("reflink",B.reflink).replace("nolink",B.nolink).getRegex(),B.normal=N({},B),B.pedantic=N({},B.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:_(/^!?\[(label)\]\((.*?)\)/).replace("label",B._label).getRegex(),reflink:_(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",B._label).getRegex()}),B.gfm=N({},B.normal,{escape:_(B.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\0?t[t.length-1].raw+="\n":t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(i):(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(o=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,i=e.slice(1),n=void 0;s.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},i),"number"===typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),this.state.top&&(i=this.tokenizer.paragraph(o)))n=t[t.length-1],r&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),r=o.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},n.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},n.inlineTokens=function(e,t){var i,n,o,r=this;void 0===t&&(t=[]);var s,a,l,c=e;if(this.tokens.links){var d=Object.keys(this.tokens.links);if(d.length>0)while(null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(c)))d.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,s.index)+"["+A("a",s[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(s=this.tokenizer.rules.inline.blockSkip.exec(c)))c=c.slice(0,s.index)+"["+A("a",s[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(c)))c=c.slice(0,s.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);while(e)if(a||(l=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(i=n.call({lexer:r},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),n=t[t.length-1],n&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),n=t[t.length-1],n&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,c,l))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e,W))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e,W))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,i=e.slice(1),n=void 0;r.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},i),"number"===typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(o,H))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),a=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(e){var u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}else e=e.substring(i.raw.length),t.push(i);return t},i(t,null,[{key:"rules",get:function(){return{block:F,inline:B}}}]),t}(),j=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.code=function(e,t,i){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,n);null!=o&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+"\n",n?'
    '+(i?e:p(e,!0))+"
    \n":"
    "+(i?e:p(e,!0))+"
    \n"},i.blockquote=function(e){return"
    \n"+e+"
    \n"},i.html=function(e){return e},i.heading=function(e,t,i,n){if(this.options.headerIds){var o=this.options.headerPrefix+n.slug(i);return"'+e+"\n"}return""+e+"\n"},i.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},i.list=function(e,t,i){var n=t?"ol":"ul",o=t&&1!==i?' start="'+i+'"':"";return"<"+n+o+">\n"+e+"\n"},i.listitem=function(e){return"
  • "+e+"
  • \n"},i.checkbox=function(e){return" "},i.paragraph=function(e){return"

    "+e+"

    \n"},i.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},i.tablerow=function(e){return"\n"+e+"\n"},i.tablecell=function(e,t){var i=t.header?"th":"td",n=t.align?"<"+i+' align="'+t.align+'">':"<"+i+">";return n+e+"\n"},i.strong=function(e){return""+e+""},i.em=function(e){return""+e+""},i.codespan=function(e){return""+e+""},i.br=function(){return this.options.xhtml?"
    ":"
    "},i.del=function(e){return""+e+""},i.link=function(e,t,i){if(e=w(this.options.sanitize,this.options.baseUrl,e),null===e)return i;var n='",n},i.image=function(e,t,i){if(e=w(this.options.sanitize,this.options.baseUrl,e),null===e)return i;var n=''+i+'":">",n},i.text=function(e){return e},t}(),z=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),U=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{n++,i=e+"-"+n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),$=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new j,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new z,this.slugger=new U}t.parse=function(e,i){var n=new t(i);return n.parse(e)},t.parseInline=function(e,i){var n=new t(i);return n.parseInline(e)};var i=t.prototype;return i.parse=function(e,t){void 0===t&&(t=!0);var i,n,o,r,s,a,l,c,d,u,h,g,p,f,v,_,b,y,w,C="",S=e.length;for(i=0;i0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=y+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=y+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(v.tokens,p),d+=this.renderer.listitem(f,b,_);C+=this.renderer.list(d,h,g);continue;case"html":C+=this.renderer.html(u.text);continue;case"paragraph":C+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":d=u.tokens?this.parseInline(u.tokens):u.text;while(i+1An error occurred:

    "+p(e.message+"",!0)+"
    ";throw e}try{var l=V.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(q.walkTokens(l,t.walkTokens)).then((function(){return $.parse(l,t)}))["catch"](a);q.walkTokens(l,t.walkTokens)}return $.parse(l,t)}catch(c){a(c)}}q.options=q.setOptions=function(e){return N(q.defaults,e),a(q.defaults),q},q.getDefaults=s,q.defaults=e.defaults,q.use=function(){for(var e=arguments.length,t=new Array(e),i=0;iAn error occurred:

    "+p(n.message+"",!0)+"
    ";throw n}},q.Parser=$,q.parser=$.parse,q.Renderer=j,q.TextRenderer=z,q.Lexer=V,q.lexer=V.lex,q.Tokenizer=M,q.Slugger=U,q.parse=q;var K=q.options,G=q.setOptions,Z=q.use,Q=q.walkTokens,Y=q.parseInline,J=q,X=$.parse,ee=V.lex;e.Lexer=V,e.Parser=$,e.Renderer=j,e.Slugger=U,e.TextRenderer=z,e.Tokenizer=M,e.getDefaults=s,e.lexer=ee,e.marked=q,e.options=K,e.parse=J,e.parseInline=Y,e.parser=X,e.setOptions=G,e.use=Z,e.walkTokens=Q,Object.defineProperty(e,"__esModule",{value:!0})}))})();v.Lexer||exports.Lexer,v.Parser||exports.Parser,v.Renderer||exports.Renderer,v.Slugger||exports.Slugger,v.TextRenderer||exports.TextRenderer,v.Tokenizer||exports.Tokenizer,v.getDefaults||exports.getDefaults,v.lexer||exports.lexer;var _=v.marked||exports.marked,b=(v.options||exports.options,v.parse||exports.parse,v.parseInline||exports.parseInline,v.parser||exports.parser,v.setOptions||exports.setOptions,v.use||exports.use,v.walkTokens||exports.walkTokens,i(79247)),y=i(50200),w=i(2179),C=i(21230),S=i(61720),x=i(95896);const k=Object.freeze({image:(e,t,i)=>{let n=[],o=[];return e&&(({href:e,dimensions:n}=(0,h.v1)(e)),o.push(`src="${(0,h.d9)(e)}"`)),i&&o.push(`alt="${(0,h.d9)(i)}"`),t&&o.push(`title="${(0,h.d9)(t)}"`),n.length&&(o=o.concat(n)),""},paragraph:e=>`

    ${e}

    `,link:(e,t,i)=>"string"!==typeof e?"":(e===i&&(i=(0,h.oR)(i)),t="string"===typeof t?(0,h.d9)((0,h.oR)(t)):"",e=(0,h.oR)(e),e=e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),`
    ${i}`)});function L(e,t={},i={}){var o,h;const f=new m.SL;let v=!1;const C=(0,s.az)(t),L=function(t){let i;try{i=(0,b.Qc)(decodeURIComponent(t))}catch(n){}return i?(i=(0,w.rs)(i,(t=>e.uris&&e.uris[t]?x.o.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},T=function(t,i){const n=e.uris&&e.uris[t];let o=x.o.revive(n);return i?t.startsWith(y.lg.data+":")?t:(o||(o=x.o.parse(t)),y.Gi.uriToBrowserUri(o).toString(!0)):o?x.o.parse(t).toString()===o.toString()?t:(o.query&&(o=o.with({query:L(o.query)})),o.toString()):t},I=new _.Renderer;I.image=k.image,I.link=k.link,I.paragraph=k.paragraph;const R=[],A=[];if(t.codeBlockRendererSync?I.code=(e,i)=>{const n=p.a.nextId(),o=t.codeBlockRendererSync(E(i),e);return A.push([n,o]),`
    ${(0,S.YU)(e)}
    `}:t.codeBlockRenderer&&(I.code=(e,i)=>{const n=p.a.nextId(),o=t.codeBlockRenderer(E(i),e);return R.push(o.then((e=>[n,e]))),`
    ${(0,S.YU)(e)}
    `}),t.actionHandler){const i=function(i){let n=i.target;if("A"===n.tagName||(n=n.parentElement,n&&"A"===n.tagName))try{let o=n.dataset["href"];o&&(e.baseUri&&(o=N(x.o.from(e.baseUri),o)),t.actionHandler.callback(o,i))}catch(o){(0,d.dL)(o)}finally{i.preventDefault()}},o=t.actionHandler.disposables.add(new r.Y(C,"click")),s=t.actionHandler.disposables.add(new r.Y(C,"auxclick"));t.actionHandler.disposables.add(u.ju.any(o.event,s.event)((e=>{const t=new l.n(n.Jj(C),e);(t.leftButton||t.middleButton)&&i(t)}))),t.actionHandler.disposables.add(n.nm(C,"keydown",(e=>{const t=new a.y(e);(t.equals(10)||t.equals(3))&&i(t)})))}e.supportHtml||(i.sanitizer=t=>{const i=e.isTrusted?t.match(/^(]+>)|(<\/\s*span>)$/):void 0;return i?t:""},i.sanitize=!0,i.silent=!0),i.renderer=I;let O,P=null!==(o=e.value)&&void 0!==o?o:"";if(P.length>1e5&&(P=`${P.substr(0,1e5)}…`),e.supportThemeIcons&&(P=(0,g.f$)(P)),t.fillInIncompleteTokens){const e={..._.defaults,...i},t=_.lexer(P,e),n=H(t);O=_.parser(n,e)}else O=_.parse(P,i);if(e.supportThemeIcons){const e=(0,c.T)(O);O=e.map((e=>"string"===typeof e?e:e.outerHTML)).join("")}const M=new DOMParser,F=M.parseFromString(D(e,O),"text/html");if(F.body.querySelectorAll("img").forEach((t=>{const i=t.getAttribute("src");if(i){let o=i;try{e.baseUri&&(o=N(x.o.from(e.baseUri),o))}catch(n){}t.src=T(o,!0)}})),F.body.querySelectorAll("a").forEach((t=>{const i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let n=T(i,!1);e.baseUri&&(n=N(x.o.from(e.baseUri),i)),t.dataset.href=n}})),C.innerHTML=D(e,F.body.innerHTML),R.length>0)Promise.all(R).then((e=>{var i,o;if(v)return;const r=new Map(e),s=C.querySelectorAll("div[data-code]");for(const t of s){const e=r.get(null!==(i=t.dataset["code"])&&void 0!==i?i:"");e&&n.mc(t,e)}null===(o=t.asyncRenderCallback)||void 0===o||o.call(t)}));else if(A.length>0){const e=new Map(A),t=C.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(null!==(h=i.dataset["code"])&&void 0!==h?h:"");t&&n.mc(i,t)}}if(t.asyncRenderCallback)for(const r of C.getElementsByTagName("img")){const e=f.add(n.nm(r,"load",(()=>{e.dispose(),t.asyncRenderCallback()})))}return{element:C,dispose:()=>{v=!0,f.dispose()}}}function E(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function N(e,t){const i=/^\w[\w\d+.-]*:/.test(t);return i?t:e.path.endsWith("/")?(0,C.i3)(e,t).toString():(0,C.i3)((0,C.XX)(e),t).toString()}function D(e,t){const{config:i,allowedSchemes:r}=I(e);o.v5("uponSanitizeAttribute",((e,t)=>{var i;if("style"!==t.attrName&&"class"!==t.attrName){if("INPUT"===e.tagName&&"checkbox"===(null===(i=e.attributes.getNamedItem("type"))||void 0===i?void 0:i.value)){if("type"===t.attrName&&"checkbox"===t.attrValue||"disabled"===t.attrName||"checked"===t.attrName)return void(t.keepAttr=!0);t.keepAttr=!1}}else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}})),o.v5("uponSanitizeElement",((e,t)=>{var i,n;"input"===t.tagName&&("checkbox"===(null===(i=e.attributes.getNamedItem("type"))||void 0===i?void 0:i.value)?e.setAttribute("disabled",""):null===(n=e.parentElement)||void 0===n||n.removeChild(e))}));const s=n._F(r);try{return o.Nw(t,{...i,RETURN_TRUSTED_TYPE:!0})}finally{o.ok("uponSanitizeAttribute"),s.dispose()}}const T=["align","autoplay","alt","checked","class","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","src","style","target","title","type","width","start"];function I(e){const t=[y.lg.http,y.lg.https,y.lg.mailto,y.lg.data,y.lg.file,y.lg.vscodeFileResource,y.lg.vscodeRemote,y.lg.vscodeRemoteResource];return e.isTrusted&&t.push(y.lg.command),{config:{ALLOWED_TAGS:[...n.sQ],ALLOWED_ATTR:T,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}function R(e){return"string"===typeof e?e:A(e)}function A(e){var t;let i=null!==(t=e.value)&&void 0!==t?t:"";i.length>1e5&&(i=`${i.substr(0,1e5)}…`);const n=_.parse(i,{renderer:P.value}).replace(/&(#\d+|[a-zA-Z]+);/g,(e=>{var t;return null!==(t=O.get(e))&&void 0!==t?t:e}));return D({isTrusted:!1},n).toString()}const O=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]),P=new f.o((()=>{const e=new _.Renderer;return e.code=e=>e,e.blockquote=e=>e,e.html=e=>"",e.heading=(e,t,i)=>e+"\n",e.hr=()=>"",e.list=(e,t)=>e,e.listitem=e=>e+"\n",e.paragraph=e=>e+"\n",e.table=(e,t)=>e+t+"\n",e.tablerow=e=>e,e.tablecell=(e,t)=>e+" ",e.strong=e=>e,e.em=e=>e,e.codespan=e=>e,e.br=()=>"\n",e.del=e=>e,e.image=(e,t,i)=>"",e.text=e=>e,e.link=(e,t,i)=>i,e}));function M(e){let t="";return e.forEach((e=>{t+=e.raw})),t}function F(e){var t,i;for(let n=0;nB(e.raw))))return q(e)}}}function B(e){return!!e.match(/^[^\[]*\]\([^\)]*$/)}function H(e){let t,i;for(t=0;t0){const e=o?i.slice(0,-1).join("\n"):t,r=!!e.match(/\|\s*$/),s=e+(r?"":"|")+`\n|${" --- |".repeat(n)}`;return _.lexer(s)}}},75467:(e,t,i)=>{"use strict";i.d(t,{n:()=>l,q:()=>c});var n=i(90882);const o=new WeakMap;function r(e){if(!e.parent||e.parent===e)return null;try{const t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null}catch(t){return null}return e.parent}class s{static getSameOriginWindowChain(e){let t=o.get(e);if(!t){t=[],o.set(e,t);let i,n=e;do{i=r(n),i?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=i}while(n)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){var i,n;if(!t||e===t)return{top:0,left:0};let o=0,r=0;const s=this.getSameOriginWindowChain(e);for(const a of s){const e=a.window.deref();if(o+=null!==(i=null===e||void 0===e?void 0:e.scrollY)&&void 0!==i?i:0,r+=null!==(n=null===e||void 0===e?void 0:e.scrollX)&&void 0!==n?n:0,e===t)break;if(!a.iframeElement)break;const s=a.iframeElement.getBoundingClientRect();o+=s.top,r+=s.left}return{top:o,left:r}}}var a=i(47606);class l{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,"number"===typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=s.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class c{constructor(e,t=0,i=0){var o;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let r=!1;if(n.i7){const e=navigator.userAgent.match(/Chrome\/(\d+)/),t=e?parseInt(e[1]):123;r=t<=122}if(e){const t=e,i=e,s=(null===(o=e.view)||void 0===o?void 0:o.devicePixelRatio)||1;if("undefined"!==typeof t.wheelDeltaY)this.deltaY=r?t.wheelDeltaY/(120*s):t.wheelDeltaY/120;else if("undefined"!==typeof i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.vU&&!a.dz?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof t.wheelDeltaX)n.G6&&a.ED?this.deltaX=-t.wheelDeltaX/120:this.deltaX=r?t.wheelDeltaX/(120*s):t.wheelDeltaX/120;else if("undefined"!==typeof i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.vU&&!a.dz?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=r?e.wheelDelta/(120*s):e.wheelDelta/120)}}preventDefault(){var e;null===(e=this.browserEvent)||void 0===e||e.preventDefault()}stopPropagation(){var e;null===(e=this.browserEvent)||void 0===e||e.stopPropagation()}}},53007:(e,t,i)=>{"use strict";var n;i.d(t,{B:()=>n}),function(e){const t={total:0,min:Number.MAX_VALUE,max:0},i={...t},n={...t},o={...t};let r=0;const s={keydown:0,input:0,render:0};function a(){v(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),s.keydown=1,queueMicrotask(l)}function l(){1===s.keydown&&(performance.mark("keydown/end"),s.keydown=2)}function c(){performance.mark("input/start"),s.input=1,m()}function d(){0===s.input&&c(),queueMicrotask(u)}function u(){1===s.input&&(performance.mark("input/end"),s.input=2)}function h(){v()}function g(){v()}function p(){2===s.keydown&&2===s.input&&0===s.render&&(performance.mark("render/start"),s.render=1,queueMicrotask(f),m())}function f(){1===s.render&&(performance.mark("render/end"),s.render=2)}function m(){setTimeout(v)}function v(){2===s.keydown&&2===s.input&&2===s.render&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),_("keydown",t),_("input",i),_("render",n),_("inputlatency",o),r++,b())}function _(e,t){const i=performance.getEntriesByName(e)[0].duration;t.total+=i,t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}function b(){performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),s.keydown=0,s.input=0,s.render=0}function y(){if(0===r)return;const e={keydown:w(t),input:w(i),render:w(n),total:w(o),sampleCount:r};return C(t),C(i),C(n),C(o),r=0,e}function w(e){return{average:e.total/r,max:e.max,min:e.min}}function C(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0}e.onKeyDown=a,e.onBeforeInput=c,e.onInput=d,e.onKeyUp=h,e.onSelectionChange=g,e.onRenderStart=p,e.getAndClearMeasurements=y}(n||(n={}))},80213:(e,t,i)=>{"use strict";i.d(t,{T:()=>c});var n=i(2548),o=i(11271),r=i(70959);class s extends r.JT{constructor(e){super(),this._onDidChange=this._register(new o.Q5),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){var i;null===(i=this._mediaQueryList)||void 0===i||i.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class a extends r.JT{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new o.Q5),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new s(e));this._register(t.onDidChange((()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)})))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d"),i=e.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return i/n}}class l{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=(0,n.ZY)(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,r.dk)(new a(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,r.dk)(o.ju.once(n.ey)((({vscodeWindowId:e})=>{e===t&&(null===i||void 0===i||i.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}const c=new l},1212:(e,t,i)=>{"use strict";i.d(t,{o:()=>h,t:()=>n});var n,o=i(2548),r=i(36606),s=i(21921),a=i(58718),l=i(11271),c=i(70959),d=i(33010),u=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};(function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"})(n||(n={}));class h extends c.JT{constructor(){super(),this.dispatched=!1,this.targets=new d.S,this.ignoreTargets=new d.S,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(l.ju.runAndSubscribe(o.Xo,(({window:e,disposables:t})=>{t.add(o.nm(e.document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),t.add(o.nm(e.document,"touchend",(t=>this.onTouchEnd(e,t)))),t.add(o.nm(e.document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}),{window:r.Ex,disposables:this._store}))}static addTarget(e){if(!h.isTouchDevice())return c.JT.None;h.INSTANCE||(h.INSTANCE=(0,c.dk)(new h));const t=h.INSTANCE.targets.push(e);return(0,c.OF)(t)}static ignoreTarget(e){if(!h.isTouchDevice())return c.JT.None;h.INSTANCE||(h.INSTANCE=(0,c.dk)(new h));const t=h.INSTANCE.ignoreTargets.push(e);return(0,c.OF)(t)}static isTouchDevice(){return"ontouchstart"in r.Ex||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,o=e.targetTouches.length;i=h.HOLD_DELAY&&Math.abs(l.initialPageX-s.Gb(l.rollingPageX))<30&&Math.abs(l.initialPageY-s.Gb(l.rollingPageY))<30){const e=this.newGestureEvent(n.Contextmenu,l.initialTarget);e.pageX=s.Gb(l.rollingPageX),e.pageY=s.Gb(l.rollingPageY),this.dispatchEvent(e)}else if(1===o){const t=s.Gb(l.rollingPageX),n=s.Gb(l.rollingPageY),o=s.Gb(l.rollingTimestamps)-l.rollingTimestamps[0],r=t-l.rollingPageX[0],a=n-l.rollingPageY[0],c=[...this.targets].filter((e=>l.initialTarget instanceof Node&&e.contains(l.initialTarget)));this.inertia(e,c,i,Math.abs(r)/o,r>0?1:-1,t,Math.abs(a)/o,a>0?1:-1,n)}this.dispatchEvent(this.newGestureEvent(n.End,l.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===n.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>h.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==n.Change&&e.type!==n.Contextmenu||(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const t of this.ignoreTargets)if(t.contains(e.initialTarget))return;for(const t of this.targets)t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)}}inertia(e,t,i,r,s,a,l,c,d){this.handle=o.jL(e,(()=>{const o=Date.now(),u=o-i;let g=0,p=0,f=!0;r+=h.SCROLL_FRICTION*u,l+=h.SCROLL_FRICTION*u,r>0&&(f=!1,g=s*r*u),l>0&&(f=!1,p=c*l*u);const m=this.newGestureEvent(n.Change);m.translationX=g,m.translationY=p,t.forEach((e=>e.dispatchEvent(m))),f||this.inertia(e,t,o,r,s,a+g,l,c,d+p)}))}onTouchMove(e){const t=Date.now();for(let i=0,o=e.changedTouches.length;i3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(o.pageX),r.rollingPageY.push(o.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}h.SCROLL_FRICTION=-.005,h.HOLD_DELAY=700,h.CLEAR_TAP_COUNT_TIME=400,u([a.H],h,"isTouchDevice",null)},82168:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(36606),o=i(98642);function r(e,t){var i;const r=globalThis.MonacoEnvironment;if(null===r||void 0===r?void 0:r.createTrustedTypesPolicy)try{return r.createTrustedTypesPolicy(e,t)}catch(s){return void(0,o.dL)(s)}try{return null===(i=n.Ex.trustedTypes)||void 0===i?void 0:i.createPolicy(e,t)}catch(s){return void(0,o.dL)(s)}}},94873:(e,t,i)=>{"use strict";i.d(t,{gU:()=>D,YH:()=>N,Lc:()=>T});var n=i(90882),o=i(1483),r=i(2548),s=i(1212),a=i(11030),l=i(6674),c=i(9172),d=i(45429),u=i(98162),h=i(51442),g=i(21921),p=i(11271),f=i(56082),m=i(70959),v=i(47606),_=i(25206);const b=r.$,y="selectOption.entry.template";class w{get templateId(){return y}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=r.R3(e,b(".option-text")),t.detail=r.R3(e,b(".option-detail")),t.decoratorRight=r.R3(e,b(".option-decorator-right")),t}renderElement(e,t,i){const n=i,o=e.text,r=e.detail,s=e.decoratorRight,a=e.isDisabled;n.text.textContent=o,n.detail.textContent=r||"",n.decoratorRight.innerText=s||"",a?n.root.classList.add("option-disabled"):n.root.classList.remove("option-disabled")}disposeTemplate(e){}}class C extends m.JT{constructor(e,t,i,n,o){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=n,this.selectBoxOptions=o||Object.create(null),"number"!==typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=C.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._hover=this._register((0,l.g)((0,a.t)("mouse"),this.selectElement,"")),this._onDidSelect=new p.Q5,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}getHeight(){return 22}getTemplateId(){return y}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=r.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=r.R3(this.selectDropDownContainer,b(".select-box-details-pane"));const t=r.R3(this.selectDropDownContainer,b(".select-box-dropdown-container-width-control")),i=r.R3(t,b(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",r.R3(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=r.dS(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(r.nm(this.selectDropDownContainer,r.tw.DRAG_START,(e=>{r.zB.stop(e,!0)})))}registerListeners(){let e;this._register(r.mu(this.selectElement,"change",(e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this._hover.update(this.options[this.selected].text)}))),this._register(r.nm(this.selectElement,r.tw.CLICK,(e=>{r.zB.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(r.nm(this.selectElement,r.tw.MOUSE_DOWN,(e=>{r.zB.stop(e)}))),this._register(r.nm(this.selectElement,"touchstart",(t=>{e=this._isVisible}))),this._register(r.nm(this.selectElement,"touchend",(t=>{r.zB.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(r.nm(this.selectElement,r.tw.KEY_DOWN,(e=>{const t=new d.y(e);let i=!1;v.dz?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),r.zB.stop(e,!0))})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){g.fS(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"===typeof e.description&&(this._hasDetails=!0)}))),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){var e;null===(e=this.selectList)||void 0===e||e.splice(0,this.selectList.length,this.options)}select(e){e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this._hover.update(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){var e,t,i;const n=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",o=null!==(t=this.styles.selectForeground)&&void 0!==t?t:"",r=null!==(i=this.styles.selectBorder)&&void 0!==i?i:"";this.selectElement.style.backgroundColor=n,this.selectElement.style.color=o,this.selectElement.style.borderColor=r}styleList(){var e,t;const i=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",n=r.XT(this.styles.selectListBackground,i);this.selectDropDownListContainer.style.backgroundColor=n,this.selectionDetailsPane.style.backgroundColor=n;const o=null!==(t=this.styles.focusBorder)&&void 0!==t?t:"";this.selectDropDownContainer.style.outlineColor=o,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{try{e.removeChild(this.selectDropDownContainer)}catch(t){}}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach(((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)})),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=r.Jj(this.selectElement),i=r.i(this.selectElement),n=r.Jj(this.selectElement).getComputedStyle(this.selectElement),o=parseFloat(n.getPropertyValue("--dropdown-padding-top"))+parseFloat(n.getPropertyValue("--dropdown-padding-bottom")),s=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-C.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,l=this.selectElement.offsetWidth,c=this.setWidthControlElement(this.widthControlElement),d=Math.max(c,Math.round(l)).toString()+"px";this.selectDropDownContainer.style.width=d,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let u=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const h=this._hasDetails?this._cachedMaxDetailsHeight:0,g=u+o+h,p=Math.floor((s-o-h)/this.getHeight()),f=Math.floor((a-o-h)/this.getHeight());if(e)return!(i.top+i.height>t.innerHeight-22||i.topp&&this.options.length>p?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(i.top+i.height>t.innerHeight-22||i.tops&&(u=p*this.getHeight())}else g>a&&(u=f*this.getHeight());return this.selectList.layout(u),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=u+o+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=u+o+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=d,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,n=0;this.options.forEach(((e,t)=>{const o=e.detail?e.detail.length:0,r=e.decoratorRight?e.decoratorRight.length:0,s=e.text.length+o+r;s>n&&(i=t,n=s)})),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=r.w(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=r.R3(e,b(".select-box-dropdown-list-container")),this.listRenderer=new w,this.selectList=new h.aV("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>(0,_.NC)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>v.dz?"":"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new c.Y(this.selectDropDownListContainer,"keydown")),i=p.ju.chain(t.event,(e=>e.filter((()=>this.selectList.length>0)).map((e=>new d.y(e)))));this._register(p.ju.chain(i,(e=>e.filter((e=>3===e.keyCode))))(this.onEnter,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>2===e.keyCode))))(this.onEnter,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>9===e.keyCode))))(this.onEscape,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>16===e.keyCode))))(this.onUpArrow,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>18===e.keyCode))))(this.onDownArrow,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>12===e.keyCode))))(this.onPageDown,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>11===e.keyCode))))(this.onPageUp,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>14===e.keyCode))))(this.onHome,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>13===e.keyCode))))(this.onEnd,this)),this._register(p.ju.chain(i,(e=>e.filter((e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113))))(this.onCharacter,this)),this._register(r.nm(this.selectList.getHTMLElement(),r.tw.POINTER_UP,(e=>this.onPointerUp(e)))),this._register(this.selectList.onMouseOver((e=>"undefined"!==typeof e.index&&this.selectList.setFocus([e.index])))),this._register(this.selectList.onDidChangeFocus((e=>this.onListFocus(e)))),this._register(r.nm(this.selectDropDownContainer,r.tw.FOCUS_OUT,(e=>{this._isVisible&&!r.jg(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()}))),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;r.zB.stop(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const n=Number(i.getAttribute("data-index")),o=i.classList.contains("option-disabled");n>=0&&n{for(let t=0;tthis.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){if(this.selected>0){r.zB.stop(e,!0);const t=this.options[this.selected-1].isDisabled;t&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onPageUp(e){r.zB.stop(e),this.selectList.focusPreviousPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onHome(e){r.zB.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){r.zB.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=f.kL.toString(e.keyCode);let i=-1;for(let n=0;n{this._register(r.nm(this.selectElement,e,(e=>{this.selectElement.focus()})))})),this._register(r.mu(this.selectElement,"click",(e=>{r.zB.stop(e,!0)}))),this._register(r.mu(this.selectElement,"change",(e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})}))),this._register(r.mu(this.selectElement,"keydown",(e=>{let t=!1;v.dz?18!==e.keyCode&&16!==e.keyCode&&10!==e.keyCode||(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&g.fS(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled))}))),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new L.Wi)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(s.o.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,n.vU&&this._register((0,r.nm)(e,r.tw.DRAG_START,(e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(o.g.TEXT,this._action.label)})))),this._register((0,r.nm)(t,s.t.Tap,(e=>this.onClick(e,!0)))),this._register((0,r.nm)(t,r.tw.MOUSE_DOWN,(e=>{i||r.zB.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),v.dz&&this._register((0,r.nm)(t,r.tw.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,r.nm)(t,r.tw.CLICK,(e=>{r.zB.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,r.nm)(t,r.tw.DBLCLICK,(e=>{r.zB.stop(e,!0)}))),[r.tw.MOUSE_UP,r.tw.MOUSE_OUT].forEach((e=>{this._register((0,r.nm)(t,e,(e=>{r.zB.stop(e),t.classList.remove("active")})))}))}onClick(e,t=!1){var i;r.zB.stop(e,!0);const n=E.Jp(this._context)?(null===(i=this.options)||void 0===i?void 0:i.useEventAsContext)?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){var e,t,i;if(!this.element)return;const n=null!==(e=this.getTooltip())&&void 0!==e?e:"";if(this.updateAriaLabel(),null===(t=this.options.hoverDelegate)||void 0===t?void 0:t.showNativeHover)this.element.title=n;else if(this.customHover)this.customHover.update(n);else{const e=null!==(i=this.options.hoverDelegate)&&void 0!==i?i:(0,a.t)("element");this.customHover=(0,l.g)(e,this.element,n),this._store.add(this.customHover)}}updateAriaLabel(){var e;if(this.element){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.element.setAttribute("aria-label",t)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class D extends N{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),E.p_(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const e=document.createElement("span");e.classList.add("keybinding"),e.textContent=this.options.keybinding,this.element.appendChild(e)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===L.Z0.ID?"presentation":this.options.isMenu?"menuitem":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=_.NC({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),null!==e&&void 0!==e?e:void 0}updateClass(){var e;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):null===(e=this.label)||void 0===e||e.classList.remove("codicon")}updateEnabled(){var e,t;this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),null===(e=this.element)||void 0===e||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),null===(t=this.element)||void 0===t||t.classList.add("disabled"))}updateAriaLabel(){var e;if(this.label){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.label.setAttribute("aria-label",t)}}updateChecked(){this.label&&(void 0!==this.action.checked?(this.label.classList.toggle("checked",this.action.checked),this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox")):(this.label.classList.remove("checked"),this.label.removeAttribute("aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class T extends N{constructor(e,t,i,n,o,r,s){super(e,t),this.selectBox=new k(i,n,o,r,s),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect((e=>this.runAction(e.selected,e.index))))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){var e;null===(e=this.selectBox)||void 0===e||e.focus()}blur(){var e;null===(e=this.selectBox)||void 0===e||e.blur()}render(e){this.selectBox.render(e)}}},78089:(e,t,i)=>{"use strict";i.d(t,{o:()=>u});var n=i(2548),o=i(45429),r=i(94873),s=i(11030),a=i(10205),l=i(11271),c=i(70959),d=i(55455);class u extends c.JT{constructor(e,t={}){var i,d,u,h,g,p,f;let m,v;switch(super(),this._actionRunnerDisposables=this._register(new c.SL),this.viewItemDisposables=this._register(new c.b2),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new l.Q5),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new l.Q5({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new l.Q5),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new l.Q5),this.onWillRun=this._onWillRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(d=this.options.orientation)&&void 0!==d?d:0,this._triggerKeys={keyDown:null!==(h=null===(u=this.options.triggerKeys)||void 0===u?void 0:u.keyDown)&&void 0!==h&&h,keys:null!==(p=null===(g=this.options.triggerKeys)||void 0===g?void 0:g.keys)&&void 0!==p?p:[3,10]},this._hoverDelegate=null!==(f=t.hoverDelegate)&&void 0!==f?f:this._register((0,s.t)("element",!0)),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new a.Wi,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",this._orientation){case 0:m=[15],v=[17];break;case 1:m=[16],v=[18],this.domNode.className+=" vertical";break}this._register(n.nm(this.domNode,n.tw.KEY_DOWN,(e=>{const t=new o.y(e);let i=!0;const n="number"===typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;m&&(t.equals(m[0])||t.equals(m[1]))?i=this.focusPrevious():v&&(t.equals(v[0])||t.equals(v[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?i=this.focusFirst():t.equals(13)?i=this.focusLast():t.equals(2)&&n instanceof r.YH&&n.trapsArrowNavigation?i=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:i=!1,i&&(t.preventDefault(),t.stopPropagation())}))),this._register(n.nm(this.domNode,n.tw.KEY_UP,(e=>{const t=new o.y(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026)||t.equals(16)||t.equals(18)||t.equals(15)||t.equals(17))&&this.updateFocusedItem()}))),this.focusTracker=this._register(n.go(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{n.vY()!==this.domNode&&n.jg(n.vY(),this.domNode)||(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const e=this.viewItems.find((e=>e instanceof r.YH&&e.isEnabled()));e instanceof r.YH&&e.setFocusable(!0)}else this.viewItems.forEach((e=>{e instanceof r.YH&&e.setFocusable(!1)}))}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){var e,t;for(let i=0;it.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems.forEach((t=>t.actionRunner=e))}getContainer(){return this.domNode}getAction(e){var t;if("number"===typeof e)return null===(t=this.viewItems[e])||void 0===t?void 0:t.action;if(e instanceof HTMLElement){while(e.parentElement!==this.actionsList){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t{const i=document.createElement("li");let s;i.className="action-item",i.setAttribute("role","presentation");const a={hoverDelegate:this._hoverDelegate,...t};this.options.actionViewItemProvider&&(s=this.options.actionViewItemProvider(e,a)),s||(s=new r.gU(this.context,e,a)),this.options.allowContextMenu||this.viewItemDisposables.set(s,n.nm(i,n.tw.CONTEXT_MENU,(e=>{n.zB.stop(e,!0)}))),s.actionRunner=this._actionRunner,s.setActionContext(this.context),s.render(i),this.focusable&&s instanceof r.YH&&0===this.viewItems.length&&s.setFocusable(!0),null===o||o<0||o>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(s)):(this.actionsList.insertBefore(i,this.actionsList.children[o]),this.viewItems.splice(o,0,s),o++)})),"number"===typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=(0,c.B9)(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),n.PO(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"===typeof e?t=e:"boolean"===typeof e&&(i=e),i&&"undefined"===typeof this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){if("undefined"===typeof this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.Z0.ID));return this.updateFocus(),!0}focusPrevious(e){if("undefined"===typeof this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.Z0.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n,o;"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&(null===(n=this.viewItems[this.previouslyFocusedItem])||void 0===n||n.blur());const r=void 0!==this.focusedItem?this.viewItems[this.focusedItem]:void 0;if(r){let n=!0;d.mf(r.focus)||(n=!1),this.options.focusOnlyEnabledItems&&d.mf(r.isEnabled)&&!r.isEnabled()&&(n=!1),r.action.id===a.Z0.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(r.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),n&&(null===(o=r.showHover)||void 0===o||o.call(r))}}doTrigger(e){if("undefined"===typeof this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof r.YH){const i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=(0,c.B9)(this.viewItems),this.getContainer().remove(),super.dispose()}}},69332:(e,t,i)=>{"use strict";i.d(t,{Z9:()=>u,i7:()=>h,wW:()=>d});var n=i(2548);const o=2e4;let r,s,a,l,c;function d(e){r=document.createElement("div"),r.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};s=t(),a=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};l=i(),c=i(),e.appendChild(r)}function u(e){r&&(s.textContent!==e?(n.PO(a),g(s,e)):(n.PO(s),g(a,e)))}function h(e){r&&(l.textContent!==e?(n.PO(c),g(l,e)):(n.PO(l),g(c,e)))}function g(e,t){n.PO(e),t.length>o&&(t=t.substr(0,o)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},24511:(e,t,i)=>{"use strict";i.d(t,{z:()=>m});var n=i(2548),o=i(29739),r=i(45429),s=i(98162),a=i(1212),l=i(11030),c=i(6674),d=i(66426),u=i(60204),h=i(11271),g=i(81478),p=i(70959),f=i(99588);u.Il.white.toString(),u.Il.white.toString();class m extends p.JT{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new h.Q5),this._onDidEscape=this._register(new h.Q5),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,o=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=o||"",this._element.style.backgroundColor=i||"",t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),"string"===typeof t.ariaLabel&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this._register(a.o.addTarget(this._element)),[n.tw.CLICK,a.t.Tap].forEach((e=>{this._register((0,n.nm)(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):n.zB.stop(e)})))})),this._register((0,n.nm)(this._element,n.tw.KEY_DOWN,(e=>{const t=new r.y(e);let i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._onDidEscape.fire(e),this._element.blur(),i=!0),i&&n.zB.stop(t,!0)}))),this._register((0,n.nm)(this._element,n.tw.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.updateBackground(!0)}))),this._register((0,n.nm)(this._element,n.tw.MOUSE_OUT,(e=>{this.updateBackground(!1)}))),this.focusTracker=this._register((0,n.go)(this._element)),this._register(this.focusTracker.onDidFocus((()=>{this.enabled&&this.updateBackground(!0)}))),this._register(this.focusTracker.onDidBlur((()=>{this.enabled&&this.updateBackground(!1)})))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){const t=[];for(let i of(0,d.T)(e))if("string"===typeof i){if(i=i.trim(),""===i)continue;const e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateBackground(e){let t;t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){var t;if(this._label===e)return;if((0,g.Fr)(this._label)&&(0,g.Fr)(e)&&(0,g.g_)(this._label,e))return;this._element.classList.add("monaco-text-button");const i=this.options.supportShortLabel?this._labelElement:this._element;if((0,g.Fr)(e)){const r=(0,s.ap)(e,{inline:!0});r.dispose();const a=null===(t=r.element.querySelector("p"))||void 0===t?void 0:t.innerHTML;if(a){const e=(0,o.Nw)(a,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});i.innerHTML=e}else(0,n.mc)(i)}else this.options.supportIcons?(0,n.mc)(i,...this.getContentElements(e)):i.textContent=e;let r="";"string"===typeof this.options.title?r=this.options.title:this.options.title&&(r=(0,s.et)(e)),this._hover?this._hover.update(r):this._hover=this._register((0,c.g)((0,l.t)("mouse"),this._element,r)),"string"===typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",this._element.title),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...f.k.asClassNameArray(e))}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}},86829:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(2548),o=i(61720);class r{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=(0,n.R3)(e,(0,n.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){var e,t;this.element.textContent=(0,o.WU)(this.countFormat,this.count),this.element.title=(0,o.WU)(this.titleFormat,this.count),this.element.style.backgroundColor=null!==(e=this.styles.badgeBackground)&&void 0!==e?e:"",this.element.style.color=null!==(t=this.styles.badgeForeground)&&void 0!==t?t:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},29031:(e,t,i)=>{"use strict";i.d(t,{C:()=>g});var n=i(2548),o=i(94873),r=i(45429),s=i(1212),a=i(10205),l=i(11271);class c extends a.Wi{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new l.Q5),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,n.R3)(e,(0,n.$)(".monaco-dropdown")),this._label=(0,n.R3)(this._element,(0,n.$)(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const r of[n.tw.CLICK,n.tw.MOUSE_DOWN,s.t.Tap])this._register((0,n.nm)(this.element,r,(e=>n.zB.stop(e,!0))));for(const r of[n.tw.MOUSE_DOWN,s.t.Tap])this._register((0,n.nm)(this._label,r,(e=>{(0,n.N5)(e)&&(e.detail>1||0!==e.button)||(this.visible?this.hide():this.show())})));this._register((0,n.nm)(this._label,n.tw.KEY_UP,(e=>{const t=new r.y(e);(t.equals(3)||t.equals(10))&&(n.zB.stop(e,!0),this.visible?this.hide():this.show())})));const o=i(this._label);o&&this._register(o),this._register(s.o.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class d extends c{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}var u=i(6674),h=i(11030);class g extends o.YH{constructor(e,t,i,n=Object.create(null)){super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new l.Q5),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=e=>{this.element=(0,n.R3)(e,(0,n.$)("a.action-label"));let t=[];return"string"===typeof this.options.classNames?t=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(t=this.options.classNames),t.find((e=>"icon"===e))||t.push("codicon"),this.element.classList.add(...t),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register((0,u.g)((0,h.t)("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},i=Array.isArray(this.menuActionsOrProvider),o={contextMenuProvider:this.contextMenuProvider,labelRenderer:t,menuAsChild:this.options.menuAsChild,actions:i?this.menuActionsOrProvider:void 0,actionProvider:i?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new d(e,o)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{var t;null===(t=this.element)||void 0===t||t.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return e.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),null!==e&&void 0!==e?e:void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){var e;null===(e=this.dropdownMenu)||void 0===e||e.show()}updateEnabled(){var e,t;const i=!this.action.enabled;null===(e=this.actionItem)||void 0===e||e.classList.toggle("disabled",i),null===(t=this.element)||void 0===t||t.classList.toggle("disabled",i)}}},93575:(e,t,i)=>{"use strict";i.d(t,{V:()=>u});var n=i(2548),o=i(21691),r=i(60748),s=i(9194),a=i(11271),l=i(25206),c=i(70959);const d=l.NC("defaultLabel","input");class u extends s.${constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new c.XK),this.additionalToggles=[],this._onDidOptionChange=this._register(new a.Q5),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new a.Q5),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new a.Q5),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new a.Q5),this._onKeyUp=this._register(new a.Q5),this._onCaseSensitiveKeyDown=this._register(new a.Q5),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new a.Q5),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||d,this.showCommonFindToggles=!!i.showCommonFindToggles;const s=i.appendCaseSensitiveLabel||"",l=i.appendWholeWordsLabel||"",u=i.appendRegexLabel||"",h=i.history||[],g=!!i.flexibleHeight,p=!!i.flexibleWidth,f=i.flexibleMaxHeight;if(this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new r.pG(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:h,showHistoryHint:i.showHistoryHint,flexibleHeight:g,flexibleWidth:p,flexibleMaxHeight:f,inputBoxStyles:i.inputBoxStyles})),this.showCommonFindToggles){this.regex=this._register(new o.eH({appendTitle:u,isChecked:!1,...i.toggleStyles})),this._register(this.regex.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.regex.onKeyDown((e=>{this._onRegexKeyDown.fire(e)}))),this.wholeWords=this._register(new o.Qx({appendTitle:l,isChecked:!1,...i.toggleStyles})),this._register(this.wholeWords.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this.caseSensitive=this._register(new o.rk({appendTitle:s,isChecked:!1,...i.toggleStyles})),this._register(this.caseSensitive.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.caseSensitive.onKeyDown((e=>{this._onCaseSensitiveKeyDown.fire(e)})));const e=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,(t=>{if(t.equals(15)||t.equals(17)||t.equals(9)){const i=e.indexOf(this.domNode.ownerDocument.activeElement);if(i>=0){let o=-1;t.equals(17)?o=(i+1)%e.length:t.equals(15)&&(o=0===i?e.length-1:i-1),t.equals(9)?(e[i].blur(),this.inputBox.focus()):o>=0&&e[o].focus(),n.zB.stop(t,!0)}}}))}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(null===i||void 0===i?void 0:i.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),null===e||void 0===e||e.appendChild(this.domNode),this._register(n.nm(this.inputBox.inputElement,"compositionstart",(e=>{this.imeSessionInProgress=!0}))),this._register(n.nm(this.inputBox.inputElement,"compositionend",(e=>{this.imeSessionInProgress=!1,this._onInput.fire()}))),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){var e,t,i;this.domNode.classList.remove("disabled"),this.inputBox.enable(),null===(e=this.regex)||void 0===e||e.enable(),null===(t=this.wholeWords)||void 0===t||t.enable(),null===(i=this.caseSensitive)||void 0===i||i.enable();for(const n of this.additionalToggles)n.enable()}disable(){var e,t,i;this.domNode.classList.add("disabled"),this.inputBox.disable(),null===(e=this.regex)||void 0===e||e.disable(),null===(t=this.wholeWords)||void 0===t||t.disable(),null===(i=this.caseSensitive)||void 0===i||i.disable();for(const n of this.additionalToggles)n.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const t of this.additionalToggles)t.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new c.SL;for(const t of null!==e&&void 0!==e?e:[])this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()}))),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(e=!1){var t,i,n,o,r,s;this.inputBox.paddingRight=e?0:(null!==(i=null===(t=this.caseSensitive)||void 0===t?void 0:t.width())&&void 0!==i?i:0)+(null!==(o=null===(n=this.wholeWords)||void 0===n?void 0:n.width())&&void 0!==o?o:0)+(null!==(s=null===(r=this.regex)||void 0===r?void 0:r.width())&&void 0!==s?s:0)+this.additionalToggles.reduce(((e,t)=>e+t.width()),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){var e,t;return null!==(t=null===(e=this.caseSensitive)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){var e,t;return null!==(t=null===(e=this.wholeWords)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){var e,t;return null!==(t=null===(e=this.regex)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){var e;null===(e=this.caseSensitive)||void 0===e||e.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}},21691:(e,t,i)=>{"use strict";i.d(t,{Qx:()=>d,eH:()=>u,rk:()=>c});var n=i(5506),o=i(8419),r=i(25206);const s=r.NC("caseDescription","Match Case"),a=r.NC("wordsDescription","Match Whole Word"),l=r.NC("regexDescription","Use Regular Expression");class c extends n.Z{constructor(e){super({icon:o.l.caseSensitive,title:s+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class d extends n.Z{constructor(e){super({icon:o.l.wholeWord,title:a+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class u extends n.Z{constructor(e){super({icon:o.l.regex,title:l+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}},32907:(e,t,i)=>{"use strict";i.d(t,{q:()=>s});var n=i(2548),o=i(66426),r=i(2179);class s{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=null!==(i=null===t||void 0===t?void 0:t.supportIcons)&&void 0!==i&&i,this.domNode=n.R3(e,n.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=s.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&r.fS(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t{n="\r\n"===e?-1:0,o+=i;for(const i of t)i.end<=o||(i.start>=o&&(i.start+=n),i.end>=o&&(i.end+=n));return i+=n,"⏎"}))}}},11030:(e,t,i)=>{"use strict";i.d(t,{r:()=>l,t:()=>c});var n=i(21815);const o=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});let r=o;const s=new n.o((()=>r("mouse",!1))),a=new n.o((()=>r("element",!1)));function l(e){r=e}function c(e,t){return t?r(e,!0):"element"===e?a.value:s.value}},90422:(e,t,i)=>{"use strict";i.d(t,{Sr:()=>d,c8:()=>c,uX:()=>u});var n=i(2548),o=i(45429),r=i(60841),s=i(70959),a=i(25206);const l=n.$;class c extends s.JT{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new r.s$(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class d extends s.JT{static render(e,t,i){return new d(e,t,i)}constructor(e,t,i){super(),this.actionContainer=n.R3(e,l("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=n.R3(this.actionContainer,l("a.action")),this.action.setAttribute("role","button"),t.iconClass&&n.R3(this.action,l(`span.icon.${t.iconClass}`));const r=n.R3(this.action,l("span"));r.textContent=i?`${t.label} (${i})`:t.label,this._register(n.nm(this.actionContainer,n.tw.CLICK,(e=>{e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer)}))),this._register(n.nm(this.actionContainer,n.tw.KEY_DOWN,(e=>{const i=new o.y(e);(i.equals(3)||i.equals(10))&&(e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer))}))),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}function u(e,t){return e&&t?(0,a.NC)("acessibleViewHint","Inspect this in the accessible view with {0}.",t):e?(0,a.NC)("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}},10791:(e,t,i)=>{"use strict";i.d(t,{g:()=>u});var n=i(2548),o=i(32907),r=i(6674),s=i(70959),a=i(2179),l=i(68801),c=i(11030);class d{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class u extends s.JT{constructor(e,t){var i;super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new d(n.R3(e,n.$(".monaco-icon-label")))),this.labelContainer=n.R3(this.domNode.element,n.$(".monaco-icon-label-container")),this.nameContainer=n.R3(this.labelContainer,n.$("span.monaco-icon-name-container")),(null===t||void 0===t?void 0:t.supportHighlights)||(null===t||void 0===t?void 0:t.supportIcons)?this.nameNode=new p(this.nameContainer,!!t.supportIcons):this.nameNode=new h(this.nameContainer),this.hoverDelegate=null!==(i=null===t||void 0===t?void 0:t.hoverDelegate)&&void 0!==i?i:(0,c.t)("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){var n;const r=["monaco-icon-label"],s=["monaco-icon-label-container"];let a="";if(i&&(i.extraClasses&&r.push(...i.extraClasses),i.italic&&r.push("italic"),i.strikethrough&&r.push("strikethrough"),i.disabledCommand&&s.push("disabled"),i.title&&("string"===typeof i.title?a+=i.title:a+=e)),this.domNode.className=r.join(" "),this.domNode.element.setAttribute("aria-label",a),this.labelContainer.className=s.join(" "),this.setupHover((null===i||void 0===i?void 0:i.descriptionTitle)?this.labelContainer:this.element,null===i||void 0===i?void 0:i.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const e=this.getOrCreateDescriptionNode();e instanceof o.q?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,null===i||void 0===i?void 0:i.labelEscapeNewLines),this.setupHover(e.element,null===i||void 0===i?void 0:i.descriptionTitle)):(e.textContent=t&&(null===i||void 0===i?void 0:i.labelEscapeNewLines)?o.q.escapeNewLines(t,[]):t||"",this.setupHover(e.element,(null===i||void 0===i?void 0:i.descriptionTitle)||""),e.empty=!t)}if((null===i||void 0===i?void 0:i.suffix)||this.suffixNode){const e=this.getOrCreateSuffixNode();e.textContent=null!==(n=null===i||void 0===i?void 0:i.suffix)&&void 0!==n?n:""}}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate.showNativeHover)(0,r.O)(e,t);else{const i=(0,r.g)(this.hoverDelegate,e,t);i&&this.customHovers.set(e,i)}else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const e=this._register(new d(n.e4(this.nameContainer,n.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new d(n.R3(e.element,n.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){var e;if(!this.descriptionNode){const t=this._register(new d(n.R3(this.labelContainer,n.$("span.monaco-icon-description-container"))));(null===(e=this.creationOptions)||void 0===e?void 0:e.supportDescriptionHighlights)?this.descriptionNode=new o.q(n.R3(t.element,n.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons}):this.descriptionNode=this._register(new d(n.R3(t.element,n.$("span.label-description"))))}return this.descriptionNode}}class h{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,a.fS)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=n.R3(this.container,n.$("a.label-name",{id:null===t||void 0===t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const o={start:n,end:n+e.length},r=i.map((e=>l.e.intersect(o,e))).filter((e=>!l.e.isEmpty(e))).map((({start:e,end:t})=>({start:e-n,end:t-n})));return n=o.end+t.length,r}))}class p{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,a.fS)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new o.q(n.R3(this.container,n.$("a.label-name",{id:null===t||void 0===t?void 0:t.domId})),{supportIcons:this.supportIcons})),this.singleLabel.set(e,null===t||void 0===t?void 0:t.matches,void 0,null===t||void 0===t?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(null===t||void 0===t?void 0:t.separator)||"/",r=g(e,i,null===t||void 0===t?void 0:t.matches);for(let s=0;s{"use strict";i.d(t,{O:()=>u,g:()=>g});var n=i(2548),o=i(85398),r=i(55191),s=i(81478),a=i(96559),l=i(70959),c=i(55455),d=i(25206);function u(e,t){(0,c.HD)(t)?e.title=(0,a.x$)(t):(null===t||void 0===t?void 0:t.markdownNotSupportedFallback)?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}class h{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){var n;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let o;if(void 0===e||(0,c.HD)(e)||e instanceof HTMLElement)o=e;else if((0,c.mf)(e.markdown)){this._hoverWidget||this.show((0,d.NC)("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new r.A;const i=this._cancellationTokenSource.token;if(o=await e.markdown(i),void 0===o&&(o=e.markdownNotSupportedFallback),this.isDisposed||i.isCancellationRequested)return}else o=null!==(n=e.markdown)&&void 0!==n?n:e.markdownNotSupportedFallback;this.show(o,t,i)}show(e,t,i){const n=this._hoverWidget;if(this.hasContent(e)){const o={content:e,target:this.target,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!n},position:{hoverPosition:2},...i};this._hoverWidget=this.hoverDelegate.showHover(o,t)}null===n||void 0===n||n.dispose()}hasContent(e){return!!e&&(!(0,s.Fr)(e)||!!e.value)}get isDisposed(){var e;return null===(e=this._hoverWidget)||void 0===e?void 0:e.isDisposed}dispose(){var e,t;null===(e=this._hoverWidget)||void 0===e||e.dispose(),null===(t=this._cancellationTokenSource)||void 0===t||t.dispose(!0),this._cancellationTokenSource=void 0}}function g(e,t,i,r){let s,a;const c=(t,i)=>{var n;const o=void 0!==a;t&&(null===a||void 0===a||a.dispose(),a=void 0),i&&(null===s||void 0===s||s.dispose(),s=void 0),o&&(null===(n=e.onDidHideHover)||void 0===n||n.call(e),a=void 0)},d=(n,s,l)=>new o._F((async()=>{a&&!a.isDisposed||(a=new h(e,l||t,n>0),await a.update("function"===typeof i?i():i,s,r))}),n);let u=!1;const g=n.nm(t,n.tw.MOUSE_DOWN,(()=>{u=!0,c(!0,!0)}),!0),p=n.nm(t,n.tw.MOUSE_UP,(()=>{u=!1}),!0),f=n.nm(t,n.tw.MOUSE_LEAVE,(e=>{u=!1,c(!1,e.fromElement===t)}),!0),m=()=>{if(s)return;const i=new l.SL,o={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>{o.x=e.x+10,e.target instanceof HTMLElement&&e.target.classList.contains("action-label")&&c(!0,!0)};i.add(n.nm(t,n.tw.MOUSE_MOVE,e,!0))}i.add(d(e.delay,!1,o)),s=i},v=n.nm(t,n.tw.MOUSE_OVER,m,!0),_=()=>{if(u||s)return;const i={targetElements:[t],dispose:()=>{}},o=new l.SL,r=()=>c(!0,!0);o.add(n.nm(t,n.tw.BLUR,r,!0)),o.add(d(e.delay,!1,i)),s=o},b=n.nm(t,n.tw.FOCUS,_,!0),y={show:e=>{c(!1,!0),d(0,e)},hide:()=>{c(!0,!0)},update:async(e,t)=>{i=e,await(null===a||void 0===a?void 0:a.update(i,void 0,t))},dispose:()=>{v.dispose(),f.dispose(),g.dispose(),p.dispose(),b.dispose(),c(!0,!0)}};return y}},66426:(e,t,i)=>{"use strict";i.d(t,{T:()=>s,h:()=>a});var n=i(2548),o=i(99588);const r=new RegExp(`(\\\\)?\\$\\((${o.k.iconNameExpression}(?:${o.k.iconModifierExpression})?)\\)`,"g");function s(e){const t=new Array;let i,n=0,o=0;while(null!==(i=r.exec(e))){o=i.index||0,n{"use strict";i.d(t,{pG:()=>_,g4:()=>m});var n=i(2548),o=i(9172),r=i(73228),s=i(78089),a=i(69332),l=i(60841),c=i(9194),d=i(11271);class u{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class h{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._navigator.next()}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return null===this._navigator.current()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new u(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var g=i(2179),p=i(25206);const f=n.$,m={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class v extends c.${constructor(e,t,i){var r;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new d.Q5),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new d.Q5),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!==(r=this.options.tooltip)&&void 0!==r?r:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=n.R3(e,f(".monaco-inputbox.idle"));const a=this.options.flexibleHeight?"textarea":"input",c=n.R3(this.element,f(".ibwrapper"));if(this.input=n.R3(c,f(a+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,(()=>this.element.classList.add("synthetic-focus"))),this.onblur(this.input,(()=>this.element.classList.remove("synthetic-focus"))),this.options.flexibleHeight){this.maxHeight="number"===typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=n.R3(c,f("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new l.NB(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),n.R3(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new o.Y(e.ownerDocument,"selectionchange")),i=d.ju.filter(t.event,(()=>{const t=e.ownerDocument.getSelection();return(null===t||void 0===t?void 0:t.anchorNode)===c}));this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,(()=>this.onValueChange())),this.onblur(this.input,(()=>this.onBlur())),this.onfocus(this.input,(()=>this.onFocus())),this._register(this.ignoreGesture(this.input)),setTimeout((()=>this.updateMirror()),0),this.options.actions&&(this.actionbar=this._register(new s.o(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.input.title=e}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"===typeof this.cachedHeight?this.cachedHeight:n.wn(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return n.H9(this.input)}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!==typeof this.cachedContentHeight||"number"!==typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){if("open"===this.state&&(0,g.fS)(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${n.XT(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null===e||void 0===e?void 0:e.type}stylesForType(e){const t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=n.w(this.element)+"px";let i;this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{var o,s;if(!this.message)return null;e=n.R3(i,f(".monaco-inputbox-container")),t();const a={inline:!0,className:"monaco-inputbox-message"},l=this.message.formatContent?(0,r.BO)(this.message.content,a):(0,r.IY)(this.message.content,a);l.classList.add(this.classForType(this.message.type));const c=this.stylesForType(this.message.type);return l.style.backgroundColor=null!==(o=c.background)&&void 0!==o?o:"",l.style.color=null!==(s=c.foreground)&&void 0!==s?s:"",l.style.border=c.border?`1px solid ${c.border}`:"",n.R3(e,l),null},onHide:()=>{this.state="closed"},layout:t}),i=3===this.message.type?p.NC("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?p.NC("alertWarningMessage","Warning: {0}",this.message.content):p.NC("alertInfoMessage","Info: {0}",this.message.content),a.Z9(i),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=e.charCodeAt(e.length-1),i=10===t?" ":"",n=(e+i).replace(/\u000c/g,"");n?this.mirror.textContent=e+i:this.mirror.innerText=" ",this.layout()}applyStyles(){var e,t,i;const o=this.options.inputBoxStyles,r=null!==(e=o.inputBackground)&&void 0!==e?e:"",s=null!==(t=o.inputForeground)&&void 0!==t?t:"",a=null!==(i=o.inputBorder)&&void 0!==i?i:"";this.element.style.backgroundColor=r,this.element.style.color=s,this.input.style.backgroundColor="inherit",this.input.style.color=s,this.element.style.border=`1px solid ${n.XT(a,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=n.wn(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,o=t.value;null!==i&&null!==n&&(this.value=o.substr(0,i)+e+o.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){var e;this._hideMessage(),this.message=null,null===(e=this.actionbar)||void 0===e||e.dispose(),super.dispose()}}class _ extends v{constructor(e,t,i){const o=p.NC({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is ⇅ to represent the up and down arrow keys.']}," or {0} for history","⇅"),r=p.NC({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is ⇅ to represent the up and down arrow keys.']}," ({0} for history)","⇅");super(e,t,i),this._onDidFocus=this._register(new d.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new d.Q5),this.onDidBlur=this._onDidBlur.event,this.history=new h(i.history,100);const s=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(o)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?o:r,t=this.placeholder+e;i.showPlaceholderOnFocus&&!n.H9(this.input)?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver(((e,t)=>{e.forEach((e=>{e.target.textContent||s()}))})),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,(()=>s())),this.onblur(this.input,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(r)||e(o)}))}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=null!==e&&void 0!==e?e:"",a.i7(this.value?this.value:p.NC("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,a.i7(this.value))}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}},64347:(e,t,i)=>{"use strict";i.d(t,{F:()=>l,e:()=>c});var n=i(2548),o=i(9501),r=i(2179),s=i(25206);const a=n.$,l={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class c{constructor(e,t,i){this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const o=this.options.keybindingLabelForeground;this.domNode=n.R3(e,a(".monaco-keybinding")),o&&(this.domNode.style.color=o),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&c.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){var e;if(this.clear(),this.keybinding){const t=this.keybinding.getChords();t[0]&&this.renderChord(this.domNode,t[0],this.matches?this.matches.firstPart:null);for(let e=1;e{"use strict";i.d(t,{kX:()=>E,Bv:()=>R});var n=i(1483),o=i(2548),r=i(9172),s=i(1212),a=i(60841),l=i(21921),c=i(85398),d=i(58718),u=i(11271),h=i(70959),g=i(68801),p=i(4225);function f(e,t){const i=[];for(const n of t){if(e.start>=n.range.end)continue;if(e.ende.concat(t)),[]))}class b{get paddingTop(){return this._paddingTop}set paddingTop(e){this._size=this._size+e-this._paddingTop,this._paddingTop=e}constructor(e){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=null!==e&&void 0!==e?e:0,this._size=this._paddingTop}splice(e,t,i=[]){const n=i.length-t,o=f({start:0,end:e},this.groups),r=f({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((e=>({range:m(e.range,n),size:e.size}))),s=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=_(o,s,r),this._size=this._paddingTop+this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e{for(const i of e){const e=this.getRenderer(t);e.disposeTemplate(i.templateData),i.templateData=null}})),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var C=i(98642),S=i(46304),x=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};const k={CurrentDragAndDropData:void 0},L={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(e){return[e]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class E{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class N{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class D{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;ti,(null===e||void 0===e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null===e||void 0===e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null===e||void 0===e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>{}}}class R{get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,o.FK)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i,n=L){var r,l,d,g,f,m,v,_,b,y,C,S,x;if(this.virtualDelegate=t,this.domId="list_id_"+ ++R.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new c.vp(50),this.splicing=!1,this.dragOverAnimationStopDisposable=h.JT.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=h.JT.None,this.onDragLeaveTimeout=h.JT.None,this.disposables=new h.SL,this._onDidChangeContentHeight=new u.Q5,this._onDidChangeContentWidth=new u.Q5,this.onDidChangeContentHeight=u.ju.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(null!==(r=n.paddingTop)&&void 0!==r?r:0);for(const o of i)this.renderers.set(o.templateId,o);this.cache=this.disposables.add(new w(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!==typeof n.mouseSupport||n.mouseSupport),this._horizontalScrolling=null!==(l=n.horizontalScrolling)&&void 0!==l?l:L.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom="undefined"===typeof n.paddingBottom?0:n.paddingBottom,this.accessibilityProvider=new I(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";const k=null!==(d=n.transformOptimization)&&void 0!==d?d:L.transformOptimization;k&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(s.o.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new p.Rm({forceIntegerValues:!0,smoothScrollDuration:null!==(g=n.smoothScrolling)&&void 0!==g&&g?125:0,scheduleAtNextAnimationFrame:e=>(0,o.jL)((0,o.Jj)(this.domNode),e)})),this.scrollableElement=this.disposables.add(new a.$Z(this.rowsContainer,{alwaysConsumeMouseWheel:null!==(f=n.alwaysConsumeMouseWheel)&&void 0!==f?f:L.alwaysConsumeMouseWheel,horizontal:1,vertical:null!==(m=n.verticalScrollMode)&&void 0!==m?m:L.verticalScrollMode,useShadows:null!==(v=n.useShadows)&&void 0!==v?v:L.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity,scrollByPage:n.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,o.nm)(this.rowsContainer,s.t.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,o.nm)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,o.nm)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,o.nm)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,o.nm)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,o.nm)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=null!==(_=n.setRowLineHeight)&&void 0!==_?_:L.setRowLineHeight,this.setRowHeight=null!==(b=n.setRowHeight)&&void 0!==b?b:L.setRowHeight,this.supportDynamicHeights=null!==(y=n.supportDynamicHeights)&&void 0!==y?y:L.supportDynamicHeights,this.dnd=null!==(C=n.dnd)&&void 0!==C?C:this.disposables.add(L.dnd),this.layout(null===(S=n.initialSize)||void 0===S?void 0:S.height,null===(x=n.initialSize)||void 0===x?void 0:x.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...null!==t&&void 0!==t?t:{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...null!==t&&void 0!==t?t:{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...null!==t&&void 0!==t?t:{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new b(e)}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o={start:e,end:e+t},r=g.e.intersect(n,o),s=new Map;for(let h=r.end-1;h>=r.start;h--){const e=this.items[h];if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){let t=s.get(e.templateId);t||(t=[],s.set(e.templateId,t));const i=this.renderers.get(e.templateId);i&&i.disposeElement&&i.disposeElement(e.element,h,e.row.templateData,e.size),t.push(e.row)}e.row=null,e.stale=!0}const a={start:e+t,end:this.items.length},l=g.e.intersect(a,n),c=g.e.relativeComplement(a,n),d=i.map((e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:h.JT.None,checkedDisposable:h.JT.None,stale:!1})));let u;0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,d),u=this.items,this.items=d):(this.rangeMap.splice(e,t,d),u=this.items.splice(e,t,...d));const p=i.length-t,f=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),v=m(l,p),_=g.e.intersect(f,v);for(let h=_.start;h<_.end;h++)this.updateItemInDOM(this.items[h],h);const b=g.e.relativeComplement(v,f);for(const h of b)for(let e=h.start;em(e,p))),w={start:e,end:e+i.length},C=[w,...y].map((e=>g.e.intersect(f,e))).reverse();for(const h of C)for(let e=h.end-1;e>=h.start;e--){const t=this.items[e],i=s.get(t.templateId),n=null===i||void 0===i?void 0:i.pop();this.insertItemInDOM(e,n)}for(const h of s.values())for(const e of h)this.cache.release(e);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),u.map((e=>e.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,o.jL)((0,o.Jj)(this.domNode),(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)"undefined"!==typeof t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){const e=this.scrollableElement.getScrollDimensions();return e.height}get firstVisibleIndex(){const e=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);return e.start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex((t=>t.element===e))}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:"number"===typeof e?e:(0,o.If)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:(0,o.FK)(this.domNode)})}render(e,t,i,n,o,r=!1){const s=this.getRenderRange(t,i),a=g.e.relativeComplement(s,e).reverse(),l=g.e.relativeComplement(e,s);if(r){const t=g.e.intersect(e,s);for(let e=t.start;e{for(const e of l)for(let t=e.start;t=e.start;t--)this.insertItemInDOM(t)})),void 0!==n&&(this.rowsContainer.style.left=`-${n}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==o&&(this.rowsContainer.style.width=`${Math.max(o,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){var i,n,r;const s=this.items[e];if(!s.row)if(t)s.row=t,s.stale=!0;else{const e=this.cache.alloc(s.templateId);s.row=e.row,s.stale||(s.stale=e.isReusingConnectedDomNode)}const a=this.accessibilityProvider.getRole(s.element)||"listitem";s.row.domNode.setAttribute("role",a);const l=this.accessibilityProvider.isChecked(s.element);if("boolean"===typeof l)s.row.domNode.setAttribute("aria-checked",String(!!l));else if(l){const e=e=>s.row.domNode.setAttribute("aria-checked",String(!!e));e(l.value),s.checkedDisposable=l.onDidChange(e)}if(s.stale||!s.row.domNode.parentElement){const t=null!==(r=null===(n=null===(i=this.items.at(e+1))||void 0===i?void 0:i.row)||void 0===n?void 0:n.domNode)&&void 0!==r?r:null;this.rowsContainer.insertBefore(s.row.domNode,t),s.stale=!1}this.updateItemInDOM(s,e);const c=this.renderers.get(s.templateId);if(!c)throw new Error(`No renderer found for template id ${s.templateId}`);null===c||void 0===c||c.renderElement(s.element,e,s.row.templateData,s.size);const d=this.dnd.getDragURI(s.element);s.dragStartDisposable.dispose(),s.row.domNode.draggable=!!d,d&&(s.dragStartDisposable=(0,o.nm)(s.row.domNode,"dragstart",(e=>this.onDragStart(s.element,d,e)))),this.horizontalScrolling&&(this.measureItemWidth(s),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,o.FK)(e.row.domNode);const t=(0,o.Jj)(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){const e=this.scrollableElement.getScrollPosition();return e.scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"click")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseDblClick(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseMiddleClick(){return u.ju.filter(u.ju.map(this.disposables.add(new r.Y(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e)),this.disposables),(e=>1===e.browserEvent.button),this.disposables)}get onMouseDown(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOver(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"mouseover")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOut(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"mouseout")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onContextMenu(){return u.ju.any(u.ju.map(this.disposables.add(new r.Y(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e)),this.disposables),u.ju.map(this.disposables.add(new r.Y(this.domNode,s.t.Contextmenu)).event,(e=>this.toGestureEvent(e)),this.disposables))}get onTouchStart(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)),this.disposables)}get onTap(){return u.ju.map(this.disposables.add(new r.Y(this.rowsContainer,s.t.Tap)).event,(e=>this.toGestureEvent(e)),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i="undefined"===typeof t?void 0:this.items[t],n=i&&i.element;return{browserEvent:e,index:t,element:n}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t],n=i&&i.element,o=this.getTargetSector(e,t);return{browserEvent:e,index:t,element:n,sector:o}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){var r,s;if(!i.dataTransfer)return;const a=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(n.g.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(a,i)),"undefined"===typeof e&&(e=String(a.length));const t=(0,o.$)(".monaco-drag-image");t.textContent=e;const n=e=>{while(e&&!e.classList.contains("monaco-workbench"))e=e.parentElement;return e||this.domNode.ownerDocument},r=n(this.domNode);r.appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>r.removeChild(t)),0)}this.domNode.classList.add("dragging"),this.currentDragData=new E(a),k.CurrentDragAndDropData=new N(a),null===(s=(r=this.dnd).onDragStart)||void 0===s||s.call(r,this.currentDragData,i)}onDragOver(e){var t,i;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),k.CurrentDragAndDropData&&"vscode-ui"===k.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(k.CurrentDragAndDropData)this.currentDragData=k.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new D}const n=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"===typeof n?n:n.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let o;e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof n&&0===(null===(t=n.effect)||void 0===t?void 0:t.type)?"copy":"move",o="boolean"!==typeof n&&n.feedback?n.feedback:"undefined"===typeof e.index?[-1]:[e.index],o=(0,l.EB)(o).filter((e=>e>=-1&&ee-t)),o=-1===o[0]?[-1]:o;let r="boolean"!==typeof n&&n.effect&&n.effect.position?n.effect.position:"drop-target";if(T(this.currentDragFeedback,o)&&this.currentDragFeedbackPosition===r)return!0;if(this.currentDragFeedback=o,this.currentDragFeedbackPosition=r,this.currentDragFeedbackDisposable.dispose(),-1===o[0])this.domNode.classList.add(r),this.rowsContainer.classList.add(r),this.currentDragFeedbackDisposable=(0,h.OF)((()=>{this.domNode.classList.remove(r),this.rowsContainer.classList.remove(r)}));else{if(o.length>1&&"drop-target"!==r)throw new Error("Can't use multiple feedbacks with position different than 'over'");"drop-target-after"===r&&o[0]{var e;for(const t of o){const i=this.items[t];i.dropTarget=!1,null===(e=i.row)||void 0===e||e.domNode.classList.remove(r)}}))}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,c.Vg)((()=>this.clearDragOverFeedback()),100,this.disposables),this.currentDragData&&(null===(i=(t=this.dnd).onDragLeave)||void 0===i||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,k.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,k.CurrentDragAndDropData=void 0,null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=h.JT.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,o.xQ)(this.domNode).top;this.dragOverAnimationDisposable=(0,o.jt)((0,o.Jj)(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,c.Vg)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;const i=e.offsetY/this.items[t].size,n=Math.floor(i/.25);return(0,S.uZ)(n,0,3)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;while(i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i)){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let o,r;e===this.elementTop(n.start)?(o=n.start,r=0):n.end-n.start>1&&(o=n.start+1,r=this.elementTop(o)-e);let s=0;while(1){const a=this.getRenderRange(e,t);let l=!1;for(let e=a.start;e=e.start;t--)this.insertItemInDOM(t);for(let e=a.start;e{"use strict";i.d(t,{wD:()=>q,aV:()=>ie,sx:()=>$,AA:()=>y,dk:()=>A,iK:()=>M,cK:()=>D,$B:()=>R,hD:()=>I,wn:()=>j,Zo:()=>V,xf:()=>P,Et:()=>O,uZ:()=>K});var n=i(2548),o=i(9172),r=i(45429),s=i(1212),a=i(69332);class l{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((n=>n.splice(e,t,i)))}}var c=i(21921),d=i(85398),u=i(60204),h=i(58718),g=i(11271),p=i(90774),f=i(70959),m=i(46304),v=i(47606),_=i(55455);class b extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var y,w,C=i(75461),S=i(75467),x=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};class k{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex((e=>e.templateData===i));if(n>=0){const e=this.renderedElements[n];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const o of this.renderedElements)o.index=e+t&&n.push({index:o.index+i-t,templateData:o.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class L{get name(){return this._trait}get renderer(){return new k(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.Q5,this.onChange=this._onChange.event}splice(e,t,i){const n=i.length-t,o=e+t,r=[];let s=0;while(s=o)r.push(this.sortedIndexes[s++]+n);this.renderer.splice(e,t,i.length),this._set(r,r)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(J),t)}_set(e,t,i){const n=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=Q(o,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return(0,c.ry)(this.sortedIndexes,e,J)>=0}dispose(){(0,f.B9)(this._onChange)}}x([h.H],L.prototype,"renderer",null);class E extends L{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class N{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,new Array(i.length).fill(!1));const n=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString()));if(0===n.length)return this.trait.splice(e,t,new Array(i.length).fill(!1));const o=new Set(n),r=i.map((e=>o.has(this.identityProvider.getId(e).toString())));this.trait.splice(e,t,r)}}function D(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function T(e,t){return!!e.classList.contains(t)||!e.classList.contains("monaco-list")&&(!!e.parentElement&&T(e.parentElement,t))}function I(e){return T(e,"monaco-editor")}function R(e){return T(e,"monaco-custom-toggle")}function A(e){return T(e,"action-item")}function O(e){return T(e,"monaco-tree-sticky-row")}function P(e){return e.classList.contains("monaco-tree-sticky-container")}function M(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&(!!e.parentElement&&M(e.parentElement))}class F{get onKeyDown(){return g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keydown")).event,(e=>e.filter((e=>!D(e.target))).map((e=>new r.y(e)))))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new f.SL,this.multipleSelectionDisposables=new f.SL,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown((e=>{switch(e.keyCode){case 3:return this.onEnter(e);case 16:return this.onUpArrow(e);case 18:return this.onDownArrow(e);case 11:return this.onPageUpArrow(e);case 12:return this.onPageDownArrow(e);case 9:return this.onEscape(e);case 31:this.multipleSelectionSupport&&(v.dz?e.metaKey:e.ctrlKey)&&this.onCtrlA(e)}})))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,c.w6)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}x([h.H],F.prototype,"onKeyDown",null),function(e){e[e["Automatic"]=0]="Automatic",e[e["Trigger"]=1]="Trigger"}(y||(y={})),function(e){e[e["Idle"]=0]="Idle",e[e["Typing"]=1]="Typing"}(w||(w={}));const B=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class H{constructor(e,t,i,n,o){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=n,this.delegate=o,this.enabled=!1,this.state=w.Idle,this.mode=y.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new f.SL,this.disposables=new f.SL,this.updateOptions(e.options)}updateOptions(e){var t,i;null===(t=e.typeNavigationEnabled)||void 0===t||t?this.enable():this.disable(),this.mode=null!==(i=e.typeNavigationMode)&&void 0!==i?i:y.Automatic}enable(){if(this.enabled)return;let e=!1;const t=g.ju.chain(this.enabledDisposables.add(new o.Y(this.view.domNode,"keydown")).event,(t=>t.filter((e=>!D(e.target))).filter((()=>this.mode===y.Automatic||this.triggered)).map((e=>new r.y(e))).filter((t=>e||this.keyboardNavigationEventFilter(t))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>n.zB.stop(e,!0))).map((e=>e.browserEvent.key)))),i=g.ju.debounce(t,(()=>null),800,void 0,void 0,void 0,this.enabledDisposables),s=g.ju.reduce(g.ju.any(t,i),((e,t)=>null===t?null:(e||"")+t),void 0,this.enabledDisposables);s(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t((()=>e=!0),void 0,this.enabledDisposables),i((()=>e=!1),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));i&&(0,a.Z9)(i)}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=w.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===w.Idle?1:0;this.state=w.Typing;for(let o=0;o1&&1===n.length)return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}}else if("undefined"===typeof s||(0,p.Ji)(e,s))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class W{constructor(e,t){this.list=e,this.view=t,this.disposables=new f.SL;const i=g.ju.chain(this.disposables.add(new o.Y(t.domNode,"keydown")).event,(e=>e.filter((e=>!D(e.target))).map((e=>new r.y(e))))),n=g.ju.chain(i,(e=>e.filter((e=>2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey))));n(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const o=i.querySelector("[tabIndex]");if(!o||!(o instanceof HTMLElement)||-1===o.tabIndex)return;const r=(0,n.Jj)(o).getComputedStyle(o);"hidden"!==r.visibility&&"none"!==r.display&&(e.preventDefault(),e.stopPropagation(),o.focus())}dispose(){this.disposables.dispose()}}function V(e){return v.dz?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function j(e){return e.browserEvent.shiftKey}function z(e){return(0,n.N5)(e)&&2===e.button}const U={isSelectionSingleChangeEvent:V,isSelectionRangeChangeEvent:j};class ${constructor(e){this.list=e,this.disposables=new f.SL,this._onPointer=new g.Q5,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||U),this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(s.o.addTarget(e.getHTMLElement()))),g.ju.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||U))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){I(e.browserEvent.target)||(0,n.vY)()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(D(e.browserEvent.target)||I(e.browserEvent.target))return;const t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(D(e.browserEvent.target)||I(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;return"undefined"===typeof t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),z(e.browserEvent)||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e))}onDoubleClick(e){if(D(e.browserEvent.target)||I(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if("undefined"===typeof i){const e=this.list.getFocus()[0];i=null!==e&&void 0!==e?e:t,this.list.setAnchor(i)}const n=Math.min(i,t),o=Math.max(i,t),r=(0,c.w6)(n,o+1),s=this.list.getSelection(),a=Z(Q(s,[i]),i);if(0===a.length)return;const l=Q(r,Y(s,a));this.list.setSelection(l,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const i=this.list.getSelection(),n=i.filter((e=>e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===n.length?this.list.setSelection([...n,t],e.browserEvent):this.list.setSelection(n,e.browserEvent)}}dispose(){this.disposables.dispose()}}class q{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){var t,i;const o=this.selectorSuffix&&`.${this.selectorSuffix}`,r=[];e.listBackground&&r.push(`.monaco-list${o} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(r.push(`.monaco-list${o}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),r.push(`.monaco-list${o}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&r.push(`.monaco-list${o}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(r.push(`.monaco-list${o}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),r.push(`.monaco-list${o}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&r.push(`.monaco-list${o}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&r.push(`.monaco-list${o}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&r.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${o}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&r.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${o}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(r.push(`.monaco-list${o} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),r.push(`.monaco-list${o} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&r.push(`.monaco-list${o} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(r.push(`.monaco-list${o} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),r.push(`.monaco-list${o} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(r.push(`.monaco-list${o} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),r.push(`.monaco-list${o} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&r.push(`.monaco-list${o} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&r.push(`.monaco-list${o}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&r.push(`.monaco-list${o}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const s=(0,n.XT)(e.listFocusAndSelectionOutline,(0,n.XT)(e.listSelectionOutline,null!==(t=e.listFocusOutline)&&void 0!==t?t:""));s&&r.push(`.monaco-list${o}:focus .monaco-list-row.focused.selected { outline: 1px solid ${s}; outline-offset: -1px;}`),e.listFocusOutline&&r.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${o}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list${o}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`);const a=(0,n.XT)(e.listSelectionOutline,null!==(i=e.listInactiveFocusOutline)&&void 0!==i?i:"");a&&r.push(`.monaco-list${o} .monaco-list-row.focused.selected { outline: 1px dotted ${a}; outline-offset: -1px; }`),e.listSelectionOutline&&r.push(`.monaco-list${o} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&r.push(`.monaco-list${o} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&r.push(`.monaco-list${o} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&r.push(`\n\t\t\t\t.monaco-list${o}.drop-target,\n\t\t\t\t.monaco-list${o} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${o} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }\n\t\t\t`),e.listDropBetweenBackground&&(r.push(`\n\t\t\t.monaco-list${o} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,\n\t\t\t.monaco-list${o} .monaco-list-row.drop-target-before::before {\n\t\t\t\tcontent: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`),r.push(`\n\t\t\t.monaco-list${o} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,\n\t\t\t.monaco-list${o} .monaco-list-row.drop-target-after::after {\n\t\t\t\tcontent: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`)),e.tableColumnsBorder&&r.push(`\n\t\t\t\t.monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t}\n\t\t\t`),e.tableOddRowsBackgroundColor&&r.push(`\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ${e.tableOddRowsBackgroundColor};\n\t\t\t\t}\n\t\t\t`),this.styleElement.textContent=r.join("\n")}}const K={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:u.Il.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:u.Il.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:u.Il.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0},G={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}}};function Z(e,t){const i=e.indexOf(t);if(-1===i)return[];const n=[];let o=i-1;while(o>=0&&e[o]===t-(i-o))n.push(e[o--]);n.reverse(),o=i;while(o=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){i.push(e[n]),n++,o++;continue}e[n]=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){n++,o++;continue}e[n]e-t;class X{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,n){let o=0;for(const r of this.renderers)r.renderElement(e,t,i[o++],n)}disposeElement(e,t,i,n){var o;let r=0;for(const s of this.renderers)null===(o=s.disposeElement)||void 0===o||o.call(s,e,t,i[r],n),r+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class ee{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e);n?i.setAttribute("aria-label",n):i.removeAttribute("aria-label");const o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof o?i.setAttribute("aria-level",`${o}`):i.removeAttribute("aria-level")}disposeTemplate(e){}}class te{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements(),i=t.indexOf(e)>-1?t:[e];return i}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,e,t)}onDragOver(e,t,i,n,o){return this.dnd.onDragOver(e,t,i,n,o)}onDragLeave(e,t,i,n){var o,r;null===(r=(o=this.dnd).onDragLeave)||void 0===r||r.call(o,e,t,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}drop(e,t,i,n,o){this.dnd.drop(e,t,i,n,o)}dispose(){this.dnd.dispose()}}class ie{get onDidChangeFocus(){return g.ju.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)),this.disposables)}get onDidChangeSelection(){return g.ju.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keydown")).event,(t=>t.map((e=>new r.y(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map((e=>n.zB.stop(e,!0))).filter((()=>!1)))),i=g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keyup")).event,(t=>t.forEach((()=>e=!1)).map((e=>new r.y(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map((e=>n.zB.stop(e,!0))).map((({browserEvent:e})=>{const t=this.getFocus(),i=t.length?t[0]:void 0,n="undefined"!==typeof i?this.view.element(i):void 0,o="undefined"!==typeof i?this.view.domElement(i):this.view.domNode;return{index:i,element:n,anchor:o,browserEvent:e}})))),s=g.ju.chain(this.view.onContextMenu,(t=>t.filter((t=>!e)).map((({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:new S.n((0,n.Jj)(this.view.domNode),i),browserEvent:i})))));return g.ju.any(t,i,s)}get onKeyDown(){return this.disposables.add(new o.Y(this.view.domNode,"keydown")).event}get onDidFocus(){return g.ju.signal(this.disposables.add(new o.Y(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return g.ju.signal(this.disposables.add(new o.Y(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,o,r=G){var s,a,c,d;this.user=e,this._options=r,this.focus=new L("focused"),this.anchor=new L("anchor"),this.eventBufferer=new g.E7,this._ariaLabel="",this.disposables=new f.SL,this._onDidDispose=new g.Q5,this.onDidDispose=this._onDidDispose.event;const u=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(s=this._options.accessibilityProvider)||void 0===s?void 0:s.getWidgetRole():"list";this.selection=new E("listbox"!==u);const h=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=r.accessibilityProvider,this.accessibilityProvider&&(h.push(new ee(this.accessibilityProvider)),null===(c=(a=this.accessibilityProvider).onDidChangeActiveDescendant)||void 0===c||c.call(a,this.onDidChangeActiveDescendant,this,this.disposables)),o=o.map((e=>new X(e.templateId,[...h,e])));const p={...r,dnd:r.dnd&&new te(this,r.dnd)};if(this.view=this.createListView(t,i,o,p),this.view.domNode.setAttribute("role",u),r.styleController)this.styleController=r.styleController(this.view.domId);else{const e=(0,n.dS)(this.view.domNode);this.styleController=new q(e,this.view.domId)}if(this.spliceable=new l([new N(this.focus,this.view,r.identityProvider),new N(this.selection,this.view,r.identityProvider),new N(this.anchor,this.view,r.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new W(this,this.view)),("boolean"!==typeof r.keyboardSupport||r.keyboardSupport)&&(this.keyboardController=new F(this,this.view,r),this.disposables.add(this.keyboardController)),r.keyboardNavigationLabelProvider){const e=r.keyboardNavigationDelegate||B;this.typeNavigationController=new H(this,this.view,r.keyboardNavigationLabelProvider,null!==(d=r.keyboardNavigationEventFilter)&&void 0!==d?d:()=>!0,e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(r),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,n){return new C.Bv(e,t,i,n)}createMouseController(e){return new $(this)}updateOptions(e={}){var t,i;this._options={...this._options,...e},null===(t=this.typeNavigationController)||void 0===t||t.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),null===(i=this.keyboardController)||void 0===i||i.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new b(this.user,`Invalid start index: ${e}`);if(t<0)throw new b(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new b(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if("undefined"!==typeof e){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,c.Xh)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return"undefined"===typeof e?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new b(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),r=this.findNextIndex(o.length>0?o[0]+e:0,t,n);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),r=this.findPreviousIndex(o.length>0?o[0]-e:0,t,n);r>-1&&this.setFocus([r],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const n=this.getFocus()[0];if(n!==i&&(void 0===n||i>n)){const o=this.findPreviousIndex(i,!1,t);o>-1&&n!==o?this.setFocus([o],e):this.setFocus([i],e)}else{const o=this.view.getScrollTop();let r=o+this.view.renderHeight;i>n&&(r-=this.view.elementHeight(i)),this.view.setScrollTop(r),this.view.getScrollTop()!==o&&(this.setFocus([]),await(0,d.Vs)(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t,i=(()=>0)){let n;const o=i(),r=this.view.getScrollTop()+o;n=0===r?this.view.indexAt(r):this.view.indexAfter(r-1);const s=this.getFocus()[0];if(s!==n&&(void 0===s||s>=n)){const i=this.findNextIndex(n,!1,t);i>-1&&s!==i?this.setFocus([i],e):this.setFocus([n],e)}else{const n=r;this.view.setScrollTop(r-this.view.renderHeight-o),this.view.getScrollTop()+i()!==n&&(this.setFocus([]),await(0,d.Vs)(0),await this.focusPreviousPage(e,t,i))}}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e,t=!1,i){for(let n=0;n=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;nthis.view.element(e)))}reveal(e,t,i=0){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);const n=this.view.getScrollTop(),o=this.view.elementTop(e),r=this.view.elementHeight(e);if((0,_.hj)(t)){const e=r-this.view.renderHeight+i;this.view.setScrollTop(e*(0,m.uZ)(t,0,1)+o-i)}else{const e=o+r,t=n+this.view.renderHeight;o=t||(o=t&&r>=this.view.renderHeight?this.view.setScrollTop(o-i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e,t=0){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),o=this.view.elementHeight(e);if(ni+this.view.renderHeight)return null;const r=o-this.view.renderHeight+t;return Math.abs((i+t-n)/r)}isDOMFocused(){return(0,n.H9)(this.view.domNode)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map((e=>this.view.element(e))),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}x([h.H],ie.prototype,"onDidChangeFocus",null),x([h.H],ie.prototype,"onDidChangeSelection",null),x([h.H],ie.prototype,"onContextMenu",null),x([h.H],ie.prototype,"onKeyDown",null),x([h.H],ie.prototype,"onDidFocus",null),x([h.H],ie.prototype,"onDidBlur",null)},83950:(e,t,i)=>{"use strict";i.d(t,{f:()=>a});var n=i(2548),o=i(18612),r=i(11271),s=i(70959);class a{constructor(){let e;this._onDidWillResize=new r.Q5,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new r.Q5,this.onDidResize=this._onDidResize.event,this._sashListener=new s.SL,this._size=new n.Ro(0,0),this._minSize=new n.Ro(0,0),this._maxSize=new n.Ro(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new o.g(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new o.g(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new o.g(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:o.l.North}),this._southSash=new o.g(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:o.l.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(r.ju.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)}))),this._sashListener.add(r.ju.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((n=>{e&&(i=n.currentX-n.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((n=>{e&&(i=-(n.currentX-n.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))}))),this._sashListener.add(r.ju.any(this._eastSash.onDidReset,this._westSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(r.ju.any(this._northSash.onDidReset,this._southSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))})))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:o}=this._minSize,{height:r,width:s}=this._maxSize;e=Math.max(i,Math.min(r,e)),t=Math.max(o,Math.min(s,t));const a=new n.Ro(t,e);n.Ro.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}},18612:(e,t,i)=>{"use strict";i.d(t,{g:()=>C,l:()=>g});var n=i(2548),o=i(9172),r=i(1212),s=i(85398),a=i(58718),l=i(11271),c=i(70959),d=i(47606),u=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};const h=!1;var g;(function(e){e["North"]="north",e["South"]="south",e["East"]="east",e["West"]="west"})(g||(g={}));let p=4;const f=new l.Q5;let m=300;const v=new l.Q5;class _{constructor(e){this.el=e,this.disposables=new c.SL}get onPointerMove(){return this.disposables.add(new o.Y((0,n.Jj)(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new o.Y((0,n.Jj)(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}u([a.H],_.prototype,"onPointerMove",null),u([a.H],_.prototype,"onPointerUp",null);class b{get onPointerMove(){return this.disposables.add(new o.Y(this.el,r.t.Change)).event}get onPointerUp(){return this.disposables.add(new o.Y(this.el,r.t.End)).event}constructor(e){this.el=e,this.disposables=new c.SL}dispose(){this.disposables.dispose()}}u([a.H],b.prototype,"onPointerMove",null),u([a.H],b.prototype,"onPointerUp",null);class y{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}u([a.H],y.prototype,"onPointerMove",null),u([a.H],y.prototype,"onPointerUp",null);const w="pointer-events-disabled";class C extends c.JT{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,n.R3)(this.el,(0,n.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,c.OF)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new o.Y(this._orthogonalStartDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new o.Y(this._orthogonalStartDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,n.R3)(this.el,(0,n.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,c.OF)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new o.Y(this._orthogonalEndDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new o.Y(this._orthogonalEndDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){super(),this.hoverDelay=m,this.hoverDelayer=this._register(new s.vp(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new l.Q5),this._onDidStart=this._register(new l.Q5),this._onDidChange=this._register(new l.Q5),this._onDidReset=this._register(new l.Q5),this._onDidEnd=this._register(new l.Q5),this.orthogonalStartSashDisposables=this._register(new c.SL),this.orthogonalStartDragHandleDisposables=this._register(new c.SL),this.orthogonalEndSashDisposables=this._register(new c.SL),this.orthogonalEndDragHandleDisposables=this._register(new c.SL),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,n.R3)(e,(0,n.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),d.dz&&this.el.classList.add("mac");const a=this._register(new o.Y(this.el,"mousedown")).event;this._register(a((t=>this.onPointerStart(t,new _(e))),this));const u=this._register(new o.Y(this.el,"dblclick")).event;this._register(u(this.onPointerDoublePress,this));const g=this._register(new o.Y(this.el,"mouseenter")).event;this._register(g((()=>C.onMouseEnter(this))));const y=this._register(new o.Y(this.el,"mouseleave")).event;this._register(y((()=>C.onMouseLeave(this)))),this._register(r.o.addTarget(this.el));const w=this._register(new o.Y(this.el,r.t.Start)).event;this._register(w((e=>this.onPointerStart(e,new b(this.el))),this));const S=this._register(new o.Y(this.el,r.t.Tap)).event;let x;this._register(S((e=>{if(x)return clearTimeout(x),x=void 0,void this.onPointerDoublePress(e);clearTimeout(x),x=setTimeout((()=>x=void 0),250)}),this)),"number"===typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=p,this._register(f.event((e=>{this.size=e,this.layout()})))),this._register(v.event((e=>this.hoverDelay=e))),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",h),this.layout()}onPointerStart(e,t){n.zB.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const n=this.getOrthogonalSash(e);n&&(i=!0,e.__orthogonalSashEvent=!0,n.onPointerStart(e,new y(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new y(t))),!this.state)return;const o=this.el.ownerDocument.getElementsByTagName("iframe");for(const n of o)n.classList.add(w);const r=e.pageX,s=e.pageY,a=e.altKey,l={startX:r,currentX:r,startY:s,currentY:s,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const u=(0,n.dS)(this.el),h=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":d.dz?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":d.dz?"col-resize":"ew-resize",u.textContent=`* { cursor: ${e} !important; }`},g=new c.SL;h(),i||this.onDidEnablementChange.event(h,null,g);const p=e=>{n.zB.stop(e,!1);const t={startX:r,currentX:e.pageX,startY:s,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)},f=e=>{n.zB.stop(e,!1),this.el.removeChild(u),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const t of o)t.classList.remove(w)};t.onPointerMove(p,null,g),t.onPointerUp(f,null,g),g.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((()=>e.el.classList.add("hover")),e.hoverDelay).then(void 0,(()=>{})),!t&&e.linkedSash&&C.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&C.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){C.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){var t;const i=null!==(t=e.initialTarget)&&void 0!==t?t:e.target;if(i&&i instanceof HTMLElement)return i.classList.contains("orthogonal-drag-handle")?i.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},60841:(e,t,i)=>{"use strict";i.d(t,{s$:()=>R,Io:()=>N,NB:()=>T,$Z:()=>I});var n=i(90882),o=i(2548),r=i(26090),s=i(75467),a=i(75853),l=i(9194),c=i(85398),d=i(99588);const u=11;class h extends l.${constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(this.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(this.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(this.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...d.k.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width=u+"px",this.domNode.style.height=u+"px","undefined"!==typeof e.top&&(this.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(this.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new a.C),this._register(o.mu(this.bgDomNode,o.tw.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._register(o.mu(this.domNode,o.tw.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._pointerdownRepeatTimer=this._register(new o.ne),this._pointerdownScheduleRepeatTimer=this._register(new c._F)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=()=>{this._pointerdownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24,o.Jj(e))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{}),(()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault()}}var g=i(70959);class p extends g.JT{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new c._F)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{var e;null===(e=this._domNode)||void 0===e||e.setClassName(this._visibleClassName)}),0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,null===(t=this._domNode)||void 0===t||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}var f=i(47606);const m=140;class v extends l.${constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new p(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new a.C),this._shouldRender=!0,this.domNode=(0,r.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(o.nm(this.domNode.domNode,o.tw.POINTER_DOWN,(e=>this._domNodePointerDown(e))))}_createArrow(e){const t=this._register(new h(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=(0,r.X)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof i&&this.slider.setWidth(i),"number"===typeof n&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(o.nm(this.slider.domNode,o.tw.POINTER_DOWN,(e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderPointerPosition(e);i<=o&&o<=n?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"===typeof e.offsetX&&"number"===typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{const n=o.i(this.domNode.domNode);t=e.pageX-n.left,i=e.pageY-n.top}const n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{const o=this._sliderOrthogonalPointerPosition(e),r=Math.abs(o-i);if(f.ED&&r>m)return void this._setDesiredScrollPositionNow(n.getScrollPosition());const s=this._sliderPointerPosition(e),a=s-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(a))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}var _=i(69758),b=i(8419);class y extends v{constructor(e,t,i){const n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.M(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,n.width,n.scrollWidth,o.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const e=(t.arrowSize-u)/2,i=(t.horizontalScrollbarSize-u)/2;this._createArrow({className:"scra",icon:b.l.scrollbarButtonLeft,top:i,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new s.q(null,1,0))}),this._createArrow({className:"scra",icon:b.l.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new s.q(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class w extends v{constructor(e,t,i){const n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.M(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,o.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-u)/2,i=(t.verticalScrollbarSize-u)/2;this._createArrow({className:"scra",icon:b.l.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new s.q(null,0,1))}),this._createArrow({className:"scra",icon:b.l.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new s.q(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var C=i(11271),S=i(4225);const x=500,k=50,L=!0;class E{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class N{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,n=this._rear;do{const o=n===this._front?e:Math.pow(2,-i);if(e-=o,t+=this._memory[n].score*o,n===this._front)break;n=(this._capacity+n-1)%this._capacity,i++}while(1);return t<=.5}acceptStandardWheelEvent(e){if(n.i7){const t=o.Jj(e.browserEvent),i=(0,n.ie)(t);this.accept(Date.now(),e.deltaX*i,e.deltaY*i)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){const n=new E(e,t,i);n.score=this._computeScore(n),-1===this._front&&-1===this._rear?(this._memory[0]=n,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=n)}_computeScore(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){const t=Math.abs(Math.round(e)-e);return t<.01}}N.INSTANCE=new N;class D extends l.${get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new C.Q5),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new C.Q5),e.style.overflow="hidden",this._options=A(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const n={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new w(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new y(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,r.X)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,r.X)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,r.X)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onmouseleave(this._listenOnDomNode,(e=>this._onMouseLeave(e))),this._hideTimeout=this._register(new c._F),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,g.B9)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,f.dz&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new s.q(e))}_setListeningToMouseWheel(e){const t=this._mouseWheelToDispose.length>0;if(t!==e&&(this._mouseWheelToDispose=(0,g.B9)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new s.q(e))};this._mouseWheelToDispose.push(o.nm(this._listenOnDomNode,o.tw.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){var t;if(null===(t=e.browserEvent)||void 0===t?void 0:t.defaultPrevented)return;const i=N.INSTANCE;L&&i.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let t=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&o+t===0?o=t=0:Math.abs(t)>=Math.abs(o)?o=0:t=0),this._options.flipAxes&&([t,o]=[o,t]);const r=!f.dz&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||o||(o=t,t=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,t*=this._options.fastScrollSensitivity);const s=this._scrollable.getFutureScrollPosition();let a={};if(t){const e=k*t,i=s.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,i)}if(o){const e=k*o,t=s.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}if(a=this._scrollable.validateScrollPosition(a),s.scrollLeft!==a.scrollLeft||s.scrollTop!==a.scrollTop){const e=L&&this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel();e?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),n=!0}}let o=n;!o&&this._options.alwaysConsumeMouseWheel&&(o=!0),!o&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(o=!0),o&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",o=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${o}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),x)}}class T extends D{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new S.Rm({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>o.jL(o.Jj(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class I extends D{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class R extends D{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const i=new S.Rm({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>o.jL(o.Jj(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}))),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}function A(e){const t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};return t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,f.dz&&(t.className+=" mac"),t}},69758:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});const n=20;class o{constructor(e,t,i,n,o,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=o,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new o(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,o,r){const s=Math.max(0,i-e),a=Math.max(0,s-2*t),l=o>0&&o>i;if(!l)return{computedAvailableSize:Math.round(s),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};const c=Math.round(Math.max(n,Math.floor(i*a/o))),d=(a-c)/(o-i),u=r*d;return{computedAvailableSize:Math.round(s),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:d,computedSliderPosition:Math.round(u)}}_refreshComputedValues(){const e=o._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return t{"use strict";i.d(t,{M:()=>b,z:()=>y});var n=i(2548),o=i(9172),r=i(18612),s=i(60841),a=i(21921),l=i(60204),c=i(11271),d=i(70959),u=i(46304),h=i(4225),g=i(55455);const p={separatorBorder:l.Il.transparent};class f{set size(e){this._size=e}get size(){return this._size}get visible(){return"undefined"===typeof this._cachedVisibleSize}setVisible(e,t){var i,n;if(e!==this.visible){e?(this.size=(0,u.uZ)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"===typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{null===(n=(i=this.view).setVisible)||void 0===n||n.call(i,e)}catch(o){console.error("Splitview: Failed to set visible view"),console.error(o)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){var e;return null===(e=this.view.proportionalLayout)||void 0===e||e}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,"number"===typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t)}catch(i){console.error("Splitview: Failed to layout view"),console.error(i)}}dispose(){this.disposable.dispose()}}class m extends f{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class v extends f{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var _,b;(function(e){e[e["Idle"]=0]="Idle",e[e["Busy"]=1]="Busy"})(_||(_={})),function(e){function t(e){return{type:"split",index:e}}function i(e){return{type:"auto",index:e}}function n(e){return{type:"invisible",cachedVisibleSize:e}}e.Distribute={type:"distribute"},e.Split=t,e.Auto=i,e.Invisible=n}(b||(b={}));class y extends d.JT{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={}){var i,r,a,l,d;super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=_.Idle,this._onDidSashChange=this._register(new c.Q5),this._onDidSashReset=this._register(new c.Q5),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=null!==(i=t.orientation)&&void 0!==i?i:0,this.inverseAltBehavior=null!==(r=t.inverseAltBehavior)&&void 0!==r&&r,this.proportionalLayout=null===(a=t.proportionalLayout)||void 0===a||a,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=(0,n.R3)(this.el,(0,n.$)(".sash-container")),this.viewContainer=(0,n.$)(".split-view-container"),this.scrollable=this._register(new h.Rm({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>(0,n.jL)((0,n.Jj)(this.el),e)})),this.scrollableElement=this._register(new s.$Z(this.viewContainer,{vertical:0===this.orientation?null!==(l=t.scrollbarVisibility)&&void 0!==l?l:1:2,horizontal:1===this.orientation?null!==(d=t.scrollbarVisibility)&&void 0!==d?d:1:2},this.scrollable));const u=this._register(new o.Y(this.viewContainer,"scroll")).event;this._register(u((e=>{const t=this.scrollableElement.getScrollPosition(),i=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,n=Math.abs(this.viewContainer.scrollTop-t.scrollTop)<=1?void 0:this.viewContainer.scrollTop;void 0===i&&void 0===n||this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:n})}))),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)}))),(0,n.R3)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||p),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=g.o8(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},n=e.view;this.doAddView(n,i,t,!0)})),this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let t=0;for(let i=0;i0&&(n.size=(0,u.uZ)(Math.round(o*e/t),n.minimumSize,n.maximumSize))}}else{const t=(0,a.w6)(this.viewItems.length),n=t.filter((e=>1===this.viewItems[e].priority)),o=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,n,o)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map((e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0)))}onSashStart({sash:e,start:t,alt:i}){for(const n of this.viewItems)n.enabled=!1;const o=this.sashItems.findIndex((t=>t.sash===e)),r=(0,d.F8)((0,n.nm)(this.el.ownerDocument.body,"keydown",(e=>s(this.sashDragState.current,e.altKey))),(0,n.nm)(this.el.ownerDocument.body,"keyup",(()=>s(this.sashDragState.current,!1)))),s=(e,t)=>{const i=this.viewItems.map((e=>e.size));let n,s,l=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){const e=o===this.sashItems.length-1;if(e){const e=this.viewItems[o];l=(e.minimumSize-e.size)/2,c=(e.maximumSize-e.size)/2}else{const e=this.viewItems[o+1];l=(e.size-e.maximumSize)/2,c=(e.size-e.minimumSize)/2}}if(!t){const e=(0,a.w6)(o,-1),t=(0,a.w6)(o+1,this.viewItems.length),r=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),l=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),c=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),d=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),u=Math.max(r,d),h=Math.min(c,l),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"===typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);n={index:g,limitDelta:e.visible?u-t:u+t,size:e.size}}if("number"===typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);s={index:p,limitDelta:e.visible?h+t:h-t,size:e.size}}}this.sashDragState={start:e,current:e,index:o,sizes:i,minDelta:l,maxDelta:c,alt:t,snapBefore:n,snapAfter:s,disposable:r}};s(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:o,minDelta:r,maxDelta:s,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e;const c=e-i,d=this.resize(t,c,n,void 0,void 0,r,s,a,l);if(o){const e=t===this.sashItems.length-1,i=this.viewItems.map((e=>e.size)),n=e?t:t+1,o=this.viewItems[n],r=o.size-o.maximumSize,s=o.size-o.minimumSize,a=e?t-1:t+1;this.resize(a,-d,i,void 0,void 0,r,s)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=(0,u.uZ)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==_.Idle)throw new Error("Cant modify splitview");this.state=_.Busy;try{const i=(0,a.w6)(this.viewItems.length).filter((t=>t!==e)),n=[...i.filter((e=>1===this.viewItems[e].priority)),e],o=i.filter((e=>2===this.viewItems[e].priority)),r=this.viewItems[e];t=Math.round(t),t=(0,u.uZ)(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(n,o)}finally{this.state=_.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const s of this.viewItems)s.maximumSize-s.minimumSize>0&&(e.push(s),t+=s.size);const i=Math.floor(t/e.length);for(const s of e)s.size=(0,u.uZ)(i,s.minimumSize,s.maximumSize);const n=(0,a.w6)(this.viewItems.length),o=n.filter((e=>1===this.viewItems[e].priority)),r=n.filter((e=>2===this.viewItems[e].priority));this.relayout(o,r)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,o){if(this.state!==_.Idle)throw new Error("Cant modify splitview");this.state=_.Busy;try{const s=(0,n.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(s):this.viewContainer.insertBefore(s,this.viewContainer.children.item(i));const l=e.onDidChange((e=>this.onViewChange(p,e))),u=(0,d.OF)((()=>this.viewContainer.removeChild(s))),h=(0,d.F8)(l,u);let g;"number"===typeof t?g=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),g="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);const p=0===this.orientation?new m(s,e,g,h):new v(s,e,g,h);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){const e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new r.g(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new r.g(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),n=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),o=c.ju.map(t.onDidStart,n),s=o(this.onSashStart,this),l=c.ju.map(t.onDidChange,n),u=l(this.onSashChange,this),h=c.ju.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),g=h(this.onSashEnd,this),p=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,a.w6)(e,-1),n=(0,a.w6)(e+1,this.viewItems.length),o=this.findFirstSnapIndex(i),r=this.findFirstSnapIndex(n);("number"!==typeof o||this.viewItems[o].visible)&&("number"!==typeof r||this.viewItems[r].visible)&&this._onDidSashReset.fire(e)})),f=(0,d.F8)(s,u,g,p,t),m={sash:t,disposable:f};this.sashItems.splice(i-1,0,m)}let f;s.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(f=[t.index]),o||this.relayout([i],f),o||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()}finally{this.state=_.Idle}}relayout(e,t){const i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map((e=>e.size)),n,o,r=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY,l,c){if(e<0||e>=this.viewItems.length)return 0;const d=(0,a.w6)(e,-1),h=(0,a.w6)(e+1,this.viewItems.length);if(o)for(const u of o)(0,a.zI)(d,u),(0,a.zI)(h,u);if(n)for(const u of n)(0,a.al)(d,u),(0,a.al)(h,u);const g=d.map((e=>this.viewItems[e])),p=d.map((e=>i[e])),f=h.map((e=>this.viewItems[e])),m=h.map((e=>i[e])),v=d.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),_=d.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),b=0===h.length?Number.POSITIVE_INFINITY:h.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),y=0===h.length?Number.NEGATIVE_INFINITY:h.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),w=Math.max(v,y,r),C=Math.min(b,_,s);let S=!1;if(l){const e=this.viewItems[l.index],i=t>=l.limitDelta;S=i!==e.visible,e.setVisible(i,l.size)}if(!S&&c){const e=this.viewItems[c.index],i=te+t.size),0);let i=this.size-t;const n=(0,a.w6)(this.viewItems.length-1,-1),o=n.filter((e=>1===this.viewItems[e].priority)),r=n.filter((e=>2===this.viewItems[e].priority));for(const s of r)(0,a.zI)(n,s);for(const s of o)(0,a.al)(n,s);"number"===typeof e&&(0,a.al)(n,e);for(let s=0;0!==i&&se+t.size),0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),n=[...this.viewItems].reverse();e=!1;const o=n.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const r=n.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let s=0;for(let l=0;l0||this.startSnappingEnabled)?e.state=1:u&&t[l]&&(s0)return;if(!e.visible&&e.snap)return t}}areViewsDistributed(){let e,t;for(const i of this.viewItems)if(e=void 0===e?i.size:Math.min(e,i.size),t=void 0===t?i.size:Math.max(t,i.size),t-e>2)return!1;return!0}dispose(){var e;null===(e=this.sashDragState)||void 0===e||e.disposable.dispose(),(0,d.B9)(this.viewItems),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[],super.dispose()}}},5506:(e,t,i)=>{"use strict";i.d(t,{D:()=>l,Z:()=>c});var n=i(9194),o=i(99588),r=i(11271),s=i(6674),a=i(11030);const l={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class c extends n.${constructor(e){super(),this._onChange=this._register(new r.Q5),this.onChange=this._onChange.event,this._onKeyDown=this._register(new r.Q5),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...o.k.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register((0,s.g)((0,a.t)("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...t),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,(e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())})),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,(e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();this._onKeyDown.fire(e)}))}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},9194:(e,t,i)=>{"use strict";i.d(t,{$:()=>l});var n=i(2548),o=i(45429),r=i(75467),s=i(1212),a=i(70959);class l extends a.JT{onclick(e,t){this._register(n.nm(e,n.tw.CLICK,(i=>t(new r.n(n.Jj(e),i)))))}onmousedown(e,t){this._register(n.nm(e,n.tw.MOUSE_DOWN,(i=>t(new r.n(n.Jj(e),i)))))}onmouseover(e,t){this._register(n.nm(e,n.tw.MOUSE_OVER,(i=>t(new r.n(n.Jj(e),i)))))}onmouseleave(e,t){this._register(n.nm(e,n.tw.MOUSE_LEAVE,(i=>t(new r.n(n.Jj(e),i)))))}onkeydown(e,t){this._register(n.nm(e,n.tw.KEY_DOWN,(e=>t(new o.y(e)))))}onkeyup(e,t){this._register(n.nm(e,n.tw.KEY_UP,(e=>t(new o.y(e)))))}oninput(e,t){this._register(n.nm(e,n.tw.INPUT,t))}onblur(e,t){this._register(n.nm(e,n.tw.BLUR,t))}onfocus(e,t){this._register(n.nm(e,n.tw.FOCUS,t))}ignoreGesture(e){return s.o.ignoreTarget(e)}}},36606:(e,t,i)=>{"use strict";function n(e,t){const i=e;"number"!==typeof i.vscodeWindowId&&Object.defineProperty(i,"vscodeWindowId",{get:()=>t})}i.d(t,{Ex:()=>o,HA:()=>n,vO:()=>r});const o=window,r=o},10205:(e,t,i)=>{"use strict";i.d(t,{Wi:()=>a,Z0:()=>l,aU:()=>s,eZ:()=>d,wY:()=>c,xw:()=>u});var n=i(11271),o=i(70959),r=i(25206);class s extends o.JT{constructor(e,t="",i="",o=!0,r){super(),this._onDidChange=this._register(new n.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=o,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class a extends o.JT{constructor(){super(...arguments),this._onWillRun=this._register(new n.Q5),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new n.Q5),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;let i;this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class l{constructor(){this.id=l.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t=t.length?[...t,new l,...i]:i);return t}async run(){}}l.ID="vs.actions.separator";class c{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class d extends s{constructor(){super(d.ID,r.NC("submenu.empty","(empty)"),void 0,!1)}}function u(e){var t;return{id:e.id,label:e.label,class:e.class,enabled:null===(t=e.enabled)||void 0===t||t,checked:e.checked,run:async(...t)=>e.run(...t),tooltip:e.label}}d.ID="vs.actions.empty"},21921:(e,t,i)=>{"use strict";function n(e,t=0){return e[e.length-(1+t)]}function o(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function r(e,t,i=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0,o=e.length;ni(e[n],t)))}function l(e,t){let i=0,n=e-1;while(i<=n){const e=(i+n)/2|0,o=t(e);if(o<0)i=e+1;else{if(!(o>0))return e;n=e-1}}return-(i+1)}function c(e,t,i){if(e|=0,e>=t.length)throw new TypeError("invalid index");const n=t[Math.floor(t.length*Math.random())],o=[],r=[],s=[];for(const a of t){const e=i(a,n);e<0?o.push(a):e>0?r.push(a):s.push(a)}return e!!e))}function f(e){let t=0;for(let i=0;i0}function _(e,t=(e=>e)){const i=new Set;return e.filter((e=>{const n=t(e);return!i.has(n)&&(i.add(n),!0)}))}function b(e,t){return e.length>0?e[0]:t}function y(e,t){let i="number"===typeof t?e:0;"number"===typeof t?i=e:(i=0,t=e);const n=[];if(i<=t)for(let o=i;ot;o--)n.push(o);return n}function w(e,t,i){const n=e.slice(0,t),o=e.slice(t);return n.concat(i,o)}function C(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function S(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function x(e,t){for(const i of t)e.push(i)}function k(e){return Array.isArray(e)?e:[e]}function L(e,t,i){const n=N(e,t),o=e.length,r=i.length;e.length=o+r;for(let s=o-1;s>=n;s--)e[s+r]=e[s];for(let s=0;st(e(i),e(n))}function I(...e){return(t,i)=>{for(const n of e){const e=n(t,i);if(!D.isNeitherLessOrGreaterThan(e))return e}return D.neitherLessOrGreaterThan}}i.d(t,{BV:()=>O,EB:()=>_,Gb:()=>n,H9:()=>P,HW:()=>c,JH:()=>o,KO:()=>g,LS:()=>s,Of:()=>v,Rs:()=>f,W$:()=>M,XY:()=>m,Xh:()=>b,Zv:()=>w,_2:()=>k,al:()=>S,db:()=>E,fS:()=>r,f_:()=>I,fv:()=>R,kX:()=>p,mw:()=>u,nW:()=>A,ry:()=>a,tT:()=>T,vA:()=>x,vM:()=>d,w6:()=>y,zI:()=>C,zy:()=>h}),function(e){function t(e){return e<0}function i(e){return e<=0}function n(e){return e>0}function o(e){return 0===e}e.isLessThan=t,e.isLessThanOrEqual=i,e.isGreaterThan=n,e.isNeitherLessOrGreaterThan=o,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(D||(D={}));const R=(e,t)=>e-t,A=(e,t)=>R(e?1:0,t?1:0);function O(e){return(t,i)=>-e(t,i)}class P{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;while(t=0&&e(this.items[t]))t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class M{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new M((t=>this.iterate((i=>!e(i)||t(i)))))}map(e){return new M((t=>this.iterate((i=>t(e(i))))))}findLast(e){let t;return this.iterate((i=>(e(i)&&(t=i),!0))),t}findLastMaxBy(e){let t,i=!0;return this.iterate((n=>((i||D.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0))),t}}M.empty=new M((e=>{}))},75912:(e,t,i)=>{"use strict";function n(e,t,i){const n=o(e,t);if(-1!==n)return e[n]}function o(e,t,i=e.length-1){for(let n=i;n>=0;n--){const i=e[n];if(t(i))return n}return-1}function r(e,t){const i=s(e,t);return-1===i?void 0:e[i]}function s(e,t,i=0,n=e.length){let o=i,r=n;while(op,J_:()=>l,Jw:()=>s,Ph:()=>h,b1:()=>c,cn:()=>a,dF:()=>n,dI:()=>d,jV:()=>u,tQ:()=>g,ti:()=>r});class c{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(c.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function d(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n0&&(i=o)}return i}function u(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n=0&&(i=o)}return i}function h(e,t){return d(e,((e,i)=>-t(e,i)))}function g(e,t){if(0===e.length)return-1;let i=0;for(let n=1;n0&&(i=n)}return i}function p(e,t){for(const i of e){const e=t(i);if(void 0!==e)return e}}c.assertInvariants=!1},65662:(e,t,i)=>{"use strict";i.d(t,{DM:()=>l,eZ:()=>a,ok:()=>o,vE:()=>r,wN:()=>s});var n=i(98642);function o(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function r(e,t="Unreachable"){throw new Error(t)}function s(e){e||(0,n.dL)(new n.he("Soft Assertion Failed"))}function a(e){e()||(e(),(0,n.dL)(new n.he("Assertion Failed")))}function l(e,t){let i=0;while(i{"use strict";i.d(t,{Aq:()=>D,CR:()=>E,J8:()=>c,PG:()=>d,Ps:()=>b,R5:()=>L,Vg:()=>_,Vs:()=>v,_F:()=>y,eP:()=>u,hF:()=>k,jT:()=>N,jg:()=>S,pY:()=>C,rH:()=>m,vp:()=>f,y5:()=>x,zS:()=>I,zh:()=>w});var n=i(55191),o=i(98642),r=i(11271),s=i(70959),a=i(47606),l=i(65338);function c(e){return!!e&&"function"===typeof e.then}function d(e){const t=new n.A,i=e(t.token),r=new Promise(((e,n)=>{const r=t.token.onCancellationRequested((()=>{r.dispose(),n(new o.FU)}));Promise.resolve(i).then((i=>{r.dispose(),t.dispose(),e(i)}),(e=>{r.dispose(),t.dispose(),n(e)}))}));return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return r.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return r.finally(e)}}}function u(e,t,i){return new Promise(((n,o)=>{const r=t.onCancellationRequested((()=>{r.dispose(),n(i)}));e.then(n,o).finally((()=>r.dispose()))}))}class h{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{if(this.queuedPromise=null,this.isDisposed)return;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}dispose(){this.isDisposed=!0}}const g=(e,t)=>{let i=!0;const n=setTimeout((()=>{i=!1,t()}),e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}},p=e=>{let t=!0;return queueMicrotask((()=>{t&&(t=!1,e())})),{isTriggered:()=>t,dispose:()=>{t=!1}}};class f{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})));const i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===l.n?p(i):g(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new o.FU),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class m{constructor(e){this.delayer=new f(e),this.throttler=new h}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function v(e,t){return t?new Promise(((i,n)=>{const r=setTimeout((()=>{s.dispose(),i()}),e),s=t.onCancellationRequested((()=>{clearTimeout(r),s.dispose(),n(new o.FU)}))})):d((t=>v(e,t)))}function _(e,t=0,i){const n=setTimeout((()=>{e(),i&&o.dispose()}),t),o=(0,s.OF)((()=>{clearTimeout(n),null===i||void 0===i||i.deleteAndLeak(o)}));return null===i||void 0===i||i.add(o),o}function b(e,t=(e=>!!e),i=null){let n=0;const o=e.length,r=()=>{if(n>=o)return Promise.resolve(i);const s=e[n++],a=Promise.resolve(s());return a.then((e=>t(e)?Promise.resolve(e):r()))};return r()}class y{constructor(e,t){this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class w{constructor(){this.disposable=void 0}cancel(){var e;null===(e=this.disposable)||void 0===e||e.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){this.cancel();const n=i.setInterval((()=>{e()}),t);this.disposable=(0,s.OF)((()=>{i.clearInterval(n),this.disposable=void 0}))}dispose(){this.cancel()}}class C{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}let S,x;(function(){x="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a.fn)((()=>{if(i)return;const e=Date.now()+15,n={didTimeout:!0,timeRemaining(){return Math.max(0,e-Date.now())}};t(Object.freeze(n))}));let i=!1;return{dispose(){i||(i=!0)}}}:(e,t,i)=>{const n=e.requestIdleCallback(t,"number"===typeof i?{timeout:i}:void 0);let o=!1;return{dispose(){o||(o=!0,e.cancelIdleCallback(n))}}},S=e=>x(globalThis,e)})();class k{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=x(e,(()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class L extends k{constructor(e){super(globalThis,e)}}class E{get isRejected(){var e;return 1===(null===(e=this.outcome)||void 0===e?void 0:e.outcome)}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise(((e,t)=>{this.completeCallback=e,this.errorCallback=t}))}complete(e){return new Promise((t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()}))}error(e){return new Promise((t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()}))}cancel(){return this.error(new o.FU)}}var N;(function(e){async function t(e){let t;const i=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return i}function i(e){return new Promise((async(t,i)=>{try{await e(t,i)}catch(n){i(n)}}))}e.settled=t,e.withAsyncBody=i})(N||(N={}));class D{static fromArray(e){return new D((t=>{t.emitMany(e)}))}static fromPromise(e){return new D((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new D((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new D((async t=>{await Promise.all(e.map((async e=>{for await(const i of e)t.emitOne(i)})))}))}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new r.Q5,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(2===this._state)throw this._error;if(e{for await(const n of e)i.emitOne(t(n))}))}map(e){return D.map(this,e)}static filter(e,t){return new D((async i=>{for await(const n of e)t(n)&&i.emitOne(n)}))}filter(e){return D.filter(this,e)}static coalesce(e){return D.filter(e,(e=>!!e))}coalesce(){return D.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return D.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}D.EMPTY=D.fromArray([]);class T extends D{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function I(e){const t=new n.A,i=e(t.token);return new T(t,(async e=>{const n=t.token.onCancellationRequested((()=>{n.dispose(),t.dispose(),e.reject(new o.FU)}));try{for await(const n of i){if(t.token.isCancellationRequested)return;e.emitOne(n)}n.dispose(),t.dispose()}catch(r){n.dispose(),t.dispose(),e.reject(r)}}))}},80356:(e,t,i)=>{"use strict";i.d(t,{Ag:()=>c,Cg:()=>h,KN:()=>s,Q$:()=>u,T4:()=>d,mP:()=>a,oq:()=>l});var n=i(21815);const o="undefined"!==typeof Buffer;new n.o((()=>new Uint8Array(256)));let r;class s{static wrap(e){return o&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new s(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return o?this.buffer.toString():(r||(r=new TextDecoder),r.decode(this.buffer))}}function a(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function l(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function c(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function d(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function u(e,t){return e[t]}function h(e,t,i){e[i]=t}},60857:(e,t,i)=>{"use strict";i.d(t,{b:()=>o,t:()=>n});class n{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}class o{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const t=this.fn(e);return this._map.set(e,t),t}}},55191:(e,t,i)=>{"use strict";i.d(t,{A:()=>a,T:()=>r});var n=i(11271);const o=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var r;(function(e){function t(t){return t===e.None||t===e.Cancelled||(t instanceof s||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.ju.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o})})(r||(r={}));class s{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new n.Q5),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token instanceof s&&this._token.cancel():this._token=r.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=r.None}}},8419:(e,t,i)=>{"use strict";i.d(t,{l:()=>a,u:()=>s});var n=i(55455);const o=Object.create(null);function r(e,t){if((0,n.HD)(t)){const i=o[t];if(void 0===i)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return o[e]=t,{id:e}}function s(){return o}const a={add:r("add",6e4),plus:r("plus",6e4),gistNew:r("gist-new",6e4),repoCreate:r("repo-create",6e4),lightbulb:r("lightbulb",60001),lightBulb:r("light-bulb",60001),repo:r("repo",60002),repoDelete:r("repo-delete",60002),gistFork:r("gist-fork",60003),repoForked:r("repo-forked",60003),gitPullRequest:r("git-pull-request",60004),gitPullRequestAbandoned:r("git-pull-request-abandoned",60004),recordKeys:r("record-keys",60005),keyboard:r("keyboard",60005),tag:r("tag",60006),tagAdd:r("tag-add",60006),tagRemove:r("tag-remove",60006),gitPullRequestLabel:r("git-pull-request-label",60006),person:r("person",60007),personFollow:r("person-follow",60007),personOutline:r("person-outline",60007),personFilled:r("person-filled",60007),gitBranch:r("git-branch",60008),gitBranchCreate:r("git-branch-create",60008),gitBranchDelete:r("git-branch-delete",60008),sourceControl:r("source-control",60008),mirror:r("mirror",60009),mirrorPublic:r("mirror-public",60009),star:r("star",60010),starAdd:r("star-add",60010),starDelete:r("star-delete",60010),starEmpty:r("star-empty",60010),comment:r("comment",60011),commentAdd:r("comment-add",60011),alert:r("alert",60012),warning:r("warning",60012),search:r("search",60013),searchSave:r("search-save",60013),logOut:r("log-out",60014),signOut:r("sign-out",60014),logIn:r("log-in",60015),signIn:r("sign-in",60015),eye:r("eye",60016),eyeUnwatch:r("eye-unwatch",60016),eyeWatch:r("eye-watch",60016),circleFilled:r("circle-filled",60017),primitiveDot:r("primitive-dot",60017),closeDirty:r("close-dirty",60017),debugBreakpoint:r("debug-breakpoint",60017),debugBreakpointDisabled:r("debug-breakpoint-disabled",60017),debugBreakpointPending:r("debug-breakpoint-pending",60377),debugHint:r("debug-hint",60017),primitiveSquare:r("primitive-square",60018),edit:r("edit",60019),pencil:r("pencil",60019),info:r("info",60020),issueOpened:r("issue-opened",60020),gistPrivate:r("gist-private",60021),gitForkPrivate:r("git-fork-private",60021),lock:r("lock",60021),mirrorPrivate:r("mirror-private",60021),close:r("close",60022),removeClose:r("remove-close",60022),x:r("x",60022),repoSync:r("repo-sync",60023),sync:r("sync",60023),clone:r("clone",60024),desktopDownload:r("desktop-download",60024),beaker:r("beaker",60025),microscope:r("microscope",60025),vm:r("vm",60026),deviceDesktop:r("device-desktop",60026),file:r("file",60027),fileText:r("file-text",60027),more:r("more",60028),ellipsis:r("ellipsis",60028),kebabHorizontal:r("kebab-horizontal",60028),mailReply:r("mail-reply",60029),reply:r("reply",60029),organization:r("organization",60030),organizationFilled:r("organization-filled",60030),organizationOutline:r("organization-outline",60030),newFile:r("new-file",60031),fileAdd:r("file-add",60031),newFolder:r("new-folder",60032),fileDirectoryCreate:r("file-directory-create",60032),trash:r("trash",60033),trashcan:r("trashcan",60033),history:r("history",60034),clock:r("clock",60034),folder:r("folder",60035),fileDirectory:r("file-directory",60035),symbolFolder:r("symbol-folder",60035),logoGithub:r("logo-github",60036),markGithub:r("mark-github",60036),github:r("github",60036),terminal:r("terminal",60037),console:r("console",60037),repl:r("repl",60037),zap:r("zap",60038),symbolEvent:r("symbol-event",60038),error:r("error",60039),stop:r("stop",60039),variable:r("variable",60040),symbolVariable:r("symbol-variable",60040),array:r("array",60042),symbolArray:r("symbol-array",60042),symbolModule:r("symbol-module",60043),symbolPackage:r("symbol-package",60043),symbolNamespace:r("symbol-namespace",60043),symbolObject:r("symbol-object",60043),symbolMethod:r("symbol-method",60044),symbolFunction:r("symbol-function",60044),symbolConstructor:r("symbol-constructor",60044),symbolBoolean:r("symbol-boolean",60047),symbolNull:r("symbol-null",60047),symbolNumeric:r("symbol-numeric",60048),symbolNumber:r("symbol-number",60048),symbolStructure:r("symbol-structure",60049),symbolStruct:r("symbol-struct",60049),symbolParameter:r("symbol-parameter",60050),symbolTypeParameter:r("symbol-type-parameter",60050),symbolKey:r("symbol-key",60051),symbolText:r("symbol-text",60051),symbolReference:r("symbol-reference",60052),goToFile:r("go-to-file",60052),symbolEnum:r("symbol-enum",60053),symbolValue:r("symbol-value",60053),symbolRuler:r("symbol-ruler",60054),symbolUnit:r("symbol-unit",60054),activateBreakpoints:r("activate-breakpoints",60055),archive:r("archive",60056),arrowBoth:r("arrow-both",60057),arrowDown:r("arrow-down",60058),arrowLeft:r("arrow-left",60059),arrowRight:r("arrow-right",60060),arrowSmallDown:r("arrow-small-down",60061),arrowSmallLeft:r("arrow-small-left",60062),arrowSmallRight:r("arrow-small-right",60063),arrowSmallUp:r("arrow-small-up",60064),arrowUp:r("arrow-up",60065),bell:r("bell",60066),bold:r("bold",60067),book:r("book",60068),bookmark:r("bookmark",60069),debugBreakpointConditionalUnverified:r("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:r("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:r("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:r("debug-breakpoint-data-unverified",60072),debugBreakpointData:r("debug-breakpoint-data",60073),debugBreakpointDataDisabled:r("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:r("debug-breakpoint-log-unverified",60074),debugBreakpointLog:r("debug-breakpoint-log",60075),debugBreakpointLogDisabled:r("debug-breakpoint-log-disabled",60075),briefcase:r("briefcase",60076),broadcast:r("broadcast",60077),browser:r("browser",60078),bug:r("bug",60079),calendar:r("calendar",60080),caseSensitive:r("case-sensitive",60081),check:r("check",60082),checklist:r("checklist",60083),chevronDown:r("chevron-down",60084),dropDownButton:r("drop-down-button",60084),chevronLeft:r("chevron-left",60085),chevronRight:r("chevron-right",60086),chevronUp:r("chevron-up",60087),chromeClose:r("chrome-close",60088),chromeMaximize:r("chrome-maximize",60089),chromeMinimize:r("chrome-minimize",60090),chromeRestore:r("chrome-restore",60091),circle:r("circle",60092),circleOutline:r("circle-outline",60092),debugBreakpointUnverified:r("debug-breakpoint-unverified",60092),circleSlash:r("circle-slash",60093),circuitBoard:r("circuit-board",60094),clearAll:r("clear-all",60095),clippy:r("clippy",60096),closeAll:r("close-all",60097),cloudDownload:r("cloud-download",60098),cloudUpload:r("cloud-upload",60099),code:r("code",60100),collapseAll:r("collapse-all",60101),colorMode:r("color-mode",60102),commentDiscussion:r("comment-discussion",60103),compareChanges:r("compare-changes",60157),creditCard:r("credit-card",60105),dash:r("dash",60108),dashboard:r("dashboard",60109),database:r("database",60110),debugContinue:r("debug-continue",60111),debugDisconnect:r("debug-disconnect",60112),debugPause:r("debug-pause",60113),debugRestart:r("debug-restart",60114),debugStart:r("debug-start",60115),debugStepInto:r("debug-step-into",60116),debugStepOut:r("debug-step-out",60117),debugStepOver:r("debug-step-over",60118),debugStop:r("debug-stop",60119),debug:r("debug",60120),deviceCameraVideo:r("device-camera-video",60121),deviceCamera:r("device-camera",60122),deviceMobile:r("device-mobile",60123),diffAdded:r("diff-added",60124),diffIgnored:r("diff-ignored",60125),diffModified:r("diff-modified",60126),diffRemoved:r("diff-removed",60127),diffRenamed:r("diff-renamed",60128),diff:r("diff",60129),discard:r("discard",60130),editorLayout:r("editor-layout",60131),emptyWindow:r("empty-window",60132),exclude:r("exclude",60133),extensions:r("extensions",60134),eyeClosed:r("eye-closed",60135),fileBinary:r("file-binary",60136),fileCode:r("file-code",60137),fileMedia:r("file-media",60138),filePdf:r("file-pdf",60139),fileSubmodule:r("file-submodule",60140),fileSymlinkDirectory:r("file-symlink-directory",60141),fileSymlinkFile:r("file-symlink-file",60142),fileZip:r("file-zip",60143),files:r("files",60144),filter:r("filter",60145),flame:r("flame",60146),foldDown:r("fold-down",60147),foldUp:r("fold-up",60148),fold:r("fold",60149),folderActive:r("folder-active",60150),folderOpened:r("folder-opened",60151),gear:r("gear",60152),gift:r("gift",60153),gistSecret:r("gist-secret",60154),gist:r("gist",60155),gitCommit:r("git-commit",60156),gitCompare:r("git-compare",60157),gitMerge:r("git-merge",60158),githubAction:r("github-action",60159),githubAlt:r("github-alt",60160),globe:r("globe",60161),grabber:r("grabber",60162),graph:r("graph",60163),gripper:r("gripper",60164),heart:r("heart",60165),home:r("home",60166),horizontalRule:r("horizontal-rule",60167),hubot:r("hubot",60168),inbox:r("inbox",60169),issueClosed:r("issue-closed",60324),issueReopened:r("issue-reopened",60171),issues:r("issues",60172),italic:r("italic",60173),jersey:r("jersey",60174),json:r("json",60175),bracket:r("bracket",60175),kebabVertical:r("kebab-vertical",60176),key:r("key",60177),law:r("law",60178),lightbulbAutofix:r("lightbulb-autofix",60179),linkExternal:r("link-external",60180),link:r("link",60181),listOrdered:r("list-ordered",60182),listUnordered:r("list-unordered",60183),liveShare:r("live-share",60184),loading:r("loading",60185),location:r("location",60186),mailRead:r("mail-read",60187),mail:r("mail",60188),markdown:r("markdown",60189),megaphone:r("megaphone",60190),mention:r("mention",60191),milestone:r("milestone",60192),gitPullRequestMilestone:r("git-pull-request-milestone",60192),mortarBoard:r("mortar-board",60193),move:r("move",60194),multipleWindows:r("multiple-windows",60195),mute:r("mute",60196),noNewline:r("no-newline",60197),note:r("note",60198),octoface:r("octoface",60199),openPreview:r("open-preview",60200),package:r("package",60201),paintcan:r("paintcan",60202),pin:r("pin",60203),play:r("play",60204),run:r("run",60204),plug:r("plug",60205),preserveCase:r("preserve-case",60206),preview:r("preview",60207),project:r("project",60208),pulse:r("pulse",60209),question:r("question",60210),quote:r("quote",60211),radioTower:r("radio-tower",60212),reactions:r("reactions",60213),references:r("references",60214),refresh:r("refresh",60215),regex:r("regex",60216),remoteExplorer:r("remote-explorer",60217),remote:r("remote",60218),remove:r("remove",60219),replaceAll:r("replace-all",60220),replace:r("replace",60221),repoClone:r("repo-clone",60222),repoForcePush:r("repo-force-push",60223),repoPull:r("repo-pull",60224),repoPush:r("repo-push",60225),report:r("report",60226),requestChanges:r("request-changes",60227),rocket:r("rocket",60228),rootFolderOpened:r("root-folder-opened",60229),rootFolder:r("root-folder",60230),rss:r("rss",60231),ruby:r("ruby",60232),saveAll:r("save-all",60233),saveAs:r("save-as",60234),save:r("save",60235),screenFull:r("screen-full",60236),screenNormal:r("screen-normal",60237),searchStop:r("search-stop",60238),server:r("server",60240),settingsGear:r("settings-gear",60241),settings:r("settings",60242),shield:r("shield",60243),smiley:r("smiley",60244),sortPrecedence:r("sort-precedence",60245),splitHorizontal:r("split-horizontal",60246),splitVertical:r("split-vertical",60247),squirrel:r("squirrel",60248),starFull:r("star-full",60249),starHalf:r("star-half",60250),symbolClass:r("symbol-class",60251),symbolColor:r("symbol-color",60252),symbolCustomColor:r("symbol-customcolor",60252),symbolConstant:r("symbol-constant",60253),symbolEnumMember:r("symbol-enum-member",60254),symbolField:r("symbol-field",60255),symbolFile:r("symbol-file",60256),symbolInterface:r("symbol-interface",60257),symbolKeyword:r("symbol-keyword",60258),symbolMisc:r("symbol-misc",60259),symbolOperator:r("symbol-operator",60260),symbolProperty:r("symbol-property",60261),wrench:r("wrench",60261),wrenchSubaction:r("wrench-subaction",60261),symbolSnippet:r("symbol-snippet",60262),tasklist:r("tasklist",60263),telescope:r("telescope",60264),textSize:r("text-size",60265),threeBars:r("three-bars",60266),thumbsdown:r("thumbsdown",60267),thumbsup:r("thumbsup",60268),tools:r("tools",60269),triangleDown:r("triangle-down",60270),triangleLeft:r("triangle-left",60271),triangleRight:r("triangle-right",60272),triangleUp:r("triangle-up",60273),twitter:r("twitter",60274),unfold:r("unfold",60275),unlock:r("unlock",60276),unmute:r("unmute",60277),unverified:r("unverified",60278),verified:r("verified",60279),versions:r("versions",60280),vmActive:r("vm-active",60281),vmOutline:r("vm-outline",60282),vmRunning:r("vm-running",60283),watch:r("watch",60284),whitespace:r("whitespace",60285),wholeWord:r("whole-word",60286),window:r("window",60287),wordWrap:r("word-wrap",60288),zoomIn:r("zoom-in",60289),zoomOut:r("zoom-out",60290),listFilter:r("list-filter",60291),listFlat:r("list-flat",60292),listSelection:r("list-selection",60293),selection:r("selection",60293),listTree:r("list-tree",60294),debugBreakpointFunctionUnverified:r("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:r("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:r("debug-breakpoint-function-disabled",60296),debugStackframeActive:r("debug-stackframe-active",60297),circleSmallFilled:r("circle-small-filled",60298),debugStackframeDot:r("debug-stackframe-dot",60298),debugStackframe:r("debug-stackframe",60299),debugStackframeFocused:r("debug-stackframe-focused",60299),debugBreakpointUnsupported:r("debug-breakpoint-unsupported",60300),symbolString:r("symbol-string",60301),debugReverseContinue:r("debug-reverse-continue",60302),debugStepBack:r("debug-step-back",60303),debugRestartFrame:r("debug-restart-frame",60304),callIncoming:r("call-incoming",60306),callOutgoing:r("call-outgoing",60307),menu:r("menu",60308),expandAll:r("expand-all",60309),feedback:r("feedback",60310),gitPullRequestReviewer:r("git-pull-request-reviewer",60310),groupByRefType:r("group-by-ref-type",60311),ungroupByRefType:r("ungroup-by-ref-type",60312),account:r("account",60313),gitPullRequestAssignee:r("git-pull-request-assignee",60313),bellDot:r("bell-dot",60314),debugConsole:r("debug-console",60315),library:r("library",60316),output:r("output",60317),runAll:r("run-all",60318),syncIgnored:r("sync-ignored",60319),pinned:r("pinned",60320),githubInverted:r("github-inverted",60321),debugAlt:r("debug-alt",60305),serverProcess:r("server-process",60322),serverEnvironment:r("server-environment",60323),pass:r("pass",60324),stopCircle:r("stop-circle",60325),playCircle:r("play-circle",60326),record:r("record",60327),debugAltSmall:r("debug-alt-small",60328),vmConnect:r("vm-connect",60329),cloud:r("cloud",60330),merge:r("merge",60331),exportIcon:r("export",60332),graphLeft:r("graph-left",60333),magnet:r("magnet",60334),notebook:r("notebook",60335),redo:r("redo",60336),checkAll:r("check-all",60337),pinnedDirty:r("pinned-dirty",60338),passFilled:r("pass-filled",60339),circleLargeFilled:r("circle-large-filled",60340),circleLarge:r("circle-large",60341),circleLargeOutline:r("circle-large-outline",60341),combine:r("combine",60342),gather:r("gather",60342),table:r("table",60343),variableGroup:r("variable-group",60344),typeHierarchy:r("type-hierarchy",60345),typeHierarchySub:r("type-hierarchy-sub",60346),typeHierarchySuper:r("type-hierarchy-super",60347),gitPullRequestCreate:r("git-pull-request-create",60348),runAbove:r("run-above",60349),runBelow:r("run-below",60350),notebookTemplate:r("notebook-template",60351),debugRerun:r("debug-rerun",60352),workspaceTrusted:r("workspace-trusted",60353),workspaceUntrusted:r("workspace-untrusted",60354),workspaceUnspecified:r("workspace-unspecified",60355),terminalCmd:r("terminal-cmd",60356),terminalDebian:r("terminal-debian",60357),terminalLinux:r("terminal-linux",60358),terminalPowershell:r("terminal-powershell",60359),terminalTmux:r("terminal-tmux",60360),terminalUbuntu:r("terminal-ubuntu",60361),terminalBash:r("terminal-bash",60362),arrowSwap:r("arrow-swap",60363),copy:r("copy",60364),personAdd:r("person-add",60365),filterFilled:r("filter-filled",60366),wand:r("wand",60367),debugLineByLine:r("debug-line-by-line",60368),inspect:r("inspect",60369),layers:r("layers",60370),layersDot:r("layers-dot",60371),layersActive:r("layers-active",60372),compass:r("compass",60373),compassDot:r("compass-dot",60374),compassActive:r("compass-active",60375),azure:r("azure",60376),issueDraft:r("issue-draft",60377),gitPullRequestClosed:r("git-pull-request-closed",60378),gitPullRequestDraft:r("git-pull-request-draft",60379),debugAll:r("debug-all",60380),debugCoverage:r("debug-coverage",60381),runErrors:r("run-errors",60382),folderLibrary:r("folder-library",60383),debugContinueSmall:r("debug-continue-small",60384),beakerStop:r("beaker-stop",60385),graphLine:r("graph-line",60386),graphScatter:r("graph-scatter",60387),pieChart:r("pie-chart",60388),bracketDot:r("bracket-dot",60389),bracketError:r("bracket-error",60390),lockSmall:r("lock-small",60391),azureDevops:r("azure-devops",60392),verifiedFilled:r("verified-filled",60393),newLine:r("newline",60394),layout:r("layout",60395),layoutActivitybarLeft:r("layout-activitybar-left",60396),layoutActivitybarRight:r("layout-activitybar-right",60397),layoutPanelLeft:r("layout-panel-left",60398),layoutPanelCenter:r("layout-panel-center",60399),layoutPanelJustify:r("layout-panel-justify",60400),layoutPanelRight:r("layout-panel-right",60401),layoutPanel:r("layout-panel",60402),layoutSidebarLeft:r("layout-sidebar-left",60403),layoutSidebarRight:r("layout-sidebar-right",60404),layoutStatusbar:r("layout-statusbar",60405),layoutMenubar:r("layout-menubar",60406),layoutCentered:r("layout-centered",60407),layoutSidebarRightOff:r("layout-sidebar-right-off",60416),layoutPanelOff:r("layout-panel-off",60417),layoutSidebarLeftOff:r("layout-sidebar-left-off",60418),target:r("target",60408),indent:r("indent",60409),recordSmall:r("record-small",60410),errorSmall:r("error-small",60411),arrowCircleDown:r("arrow-circle-down",60412),arrowCircleLeft:r("arrow-circle-left",60413),arrowCircleRight:r("arrow-circle-right",60414),arrowCircleUp:r("arrow-circle-up",60415),heartFilled:r("heart-filled",60420),map:r("map",60421),mapFilled:r("map-filled",60422),circleSmall:r("circle-small",60423),bellSlash:r("bell-slash",60424),bellSlashDot:r("bell-slash-dot",60425),commentUnresolved:r("comment-unresolved",60426),gitPullRequestGoToChanges:r("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:r("git-pull-request-new-changes",60428),searchFuzzy:r("search-fuzzy",60429),commentDraft:r("comment-draft",60430),send:r("send",60431),sparkle:r("sparkle",60432),insert:r("insert",60433),mic:r("mic",60434),thumbsDownFilled:r("thumbsdown-filled",60435),thumbsUpFilled:r("thumbsup-filled",60436),coffee:r("coffee",60437),snake:r("snake",60438),game:r("game",60439),vr:r("vr",60440),chip:r("chip",60441),piano:r("piano",60442),music:r("music",60443),micFilled:r("mic-filled",60444),gitFetch:r("git-fetch",60445),copilot:r("copilot",60446),lightbulbSparkle:r("lightbulb-sparkle",60447),lightbulbSparkleAutofix:r("lightbulb-sparkle-autofix",60447),robot:r("robot",60448),sparkleFilled:r("sparkle-filled",60449),diffSingle:r("diff-single",60450),diffMultiple:r("diff-multiple",60451),surroundWith:r("surround-with",60452),gitStash:r("git-stash",60454),gitStashApply:r("git-stash-apply",60455),gitStashPop:r("git-stash-pop",60456),runAllCoverage:r("run-all-coverage",60461),runCoverage:r("run-all-coverage",60460),coverage:r("coverage",60462),githubProject:r("github-project",60463),dialogError:r("dialog-error","error"),dialogWarning:r("dialog-warning","warning"),dialogInfo:r("dialog-info","info"),dialogClose:r("dialog-close","close"),treeItemExpanded:r("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:r("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:r("tree-filter-on-type-off","list-selection"),treeFilterClear:r("tree-filter-clear","close"),treeItemLoading:r("tree-item-loading","loading"),menuSelection:r("menu-selection","check"),menuSubmenu:r("menu-submenu","chevron-right"),menuBarMore:r("menubar-more","more"),scrollbarButtonLeft:r("scrollbar-button-left","triangle-left"),scrollbarButtonRight:r("scrollbar-button-right","triangle-right"),scrollbarButtonUp:r("scrollbar-button-up","triangle-up"),scrollbarButtonDown:r("scrollbar-button-down","triangle-down"),toolBarMore:r("toolbar-more","more"),quickInputBack:r("quick-input-back","arrow-left")}},22237:(e,t,i)=>{"use strict";function n(e,t){const i=[],n=[];for(const o of e)t.has(o)||i.push(o);for(const o of t)e.has(o)||n.push(o);return{removed:i,added:n}}function o(e,t){const i=new Set;for(const n of t)e.has(n)&&i.add(n);return i}i.d(t,{j:()=>o,q:()=>n})},60204:(e,t,i)=>{"use strict";function n(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{Il:()=>a,Oz:()=>r,VS:()=>o,tx:()=>s});class o{constructor(e,t,i,o=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class r{constructor(e,t,i,o){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.l=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=e.a,s=Math.max(t,i,n),a=Math.min(t,i,n);let l=0,c=0;const d=(a+s)/2,u=s-a;if(u>0){switch(c=Math.min(d<=.5?u/(2*d):u/(2-2*d),1),s){case t:l=(i-n)/u+(i1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:n,a:s}=e;let a,l,c;if(0===i)a=l=c=n;else{const e=n<.5?n*(1+i):n+i-n*i,o=2*n-e;a=r._hue2rgb(o,e,t+1/3),l=r._hue2rgb(o,e,t),c=r._hue2rgb(o,e,t-1/3)}return new o(Math.round(255*a),Math.round(255*l),Math.round(255*c),s)}}class s{constructor(e,t,i,o){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.v=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=Math.max(t,i,n),r=Math.min(t,i,n),a=o-r,l=0===o?0:a/o;let c;return c=0===a?0:o===t?((i-n)/a%6+6)%6:o===i?(n-t)/a+2:(t-i)/a+4,new s(Math.round(60*c),l,o,e.a)}static toRGBA(e){const{h:t,s:i,v:n,a:r}=e,s=n*i,a=s*(1-Math.abs(t/60%2-1)),l=n-s;let[c,d,u]=[0,0,0];return t<60?(c=s,d=a):t<120?(c=a,d=s):t<180?(d=s,u=a):t<240?(d=a,u=s):t<300?(c=a,u=s):t<=360&&(c=s,u=a),c=Math.round(255*(c+l)),d=Math.round(255*(d+l)),u=Math.round(255*(u+l)),new o(c,d,u,r)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:r.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:s.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof o)this.rgba=e;else if(e instanceof r)this._hsla=e,this.rgba=r.toRGBA(e);else{if(!(e instanceof s))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=s.toRGBA(e)}}equals(e){return!!e&&o.equals(this.rgba,e.rgba)&&r.equals(this.hsla,e.hsla)&&s.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=a._relativeLuminanceForComponent(this.rgba.r),t=a._relativeLuminanceForComponent(this.rgba.g),i=a._relativeLuminanceForComponent(this.rgba.b),o=.2126*e+.7152*t+.0722*i;return n(o,4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){const e=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3;return e>=128}isLighterThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t>i}isDarkerThan(e){const t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t{"use strict";i.d(t,{Hl:()=>l,Ix:()=>a,SN:()=>d,Z0:()=>h,ZO:()=>s});var n=i(21921),o=i(39595),r=i(7091);function s(e){return{asString:async()=>e,asFile:()=>{},value:"string"===typeof e?e:void 0}}function a(e,t,i){const n={id:(0,r.R)(),name:e,uri:t,data:i};return{asString:async()=>"",asFile:()=>n,value:void 0}}class l{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return o.$.some(this,(([e,t])=>t.asFile()))&&t.push("files"),u(c(e),t)}get(e){var t;return null===(t=this._entries.get(this.toKey(e)))||void 0===t?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return c(e)}}function c(e){return e.toLowerCase()}function d(e,t){return u(c(e),t.map(c))}function u(e,t){if("*/*"===e)return t.length>0;if(t.includes(e))return!0;const i=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[n,o,r]=i;return"*"===r&&t.some((e=>e.startsWith(o+"/")))}const h=Object.freeze({create:e=>(0,n.EB)(e.map((e=>e.toString()))).join("\r\n"),split:e=>e.split("\r\n"),parse:e=>h.split(e).filter((e=>!e.startsWith("#")))})},58718:(e,t,i)=>{"use strict";function n(e,t,i){let n=null,o=null;if("function"===typeof i.value?(n="value",o=i.value,0!==o.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof i.get&&(n="get",o=i.get),!o)throw new Error("not supported");const r=`$memoize$${t}`;i[n]=function(...e){return this.hasOwnProperty(r)||Object.defineProperty(this,r,{configurable:!1,enumerable:!1,writable:!1,value:o.apply(this,e)}),this[r]}}i.d(t,{H:()=>n})},88994:(e,t,i)=>{"use strict";i.d(t,{Hs:()=>d,a$:()=>s});class n{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var o=i(63381);class r{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new n(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class d{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,o,r]=d._getElements(e),[s,a,l]=d._getElements(t);this._hasStrings=r&&l,this._originalStringElements=n,this._originalElementsOrHash=o,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(d._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,n=t.length;i=e&&o>=i&&this.ElementsAreEqual(t,o))t--,o--;if(e>t||i>o){let r;return i<=o?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new n(e,0,i,o-i+1)]):e<=t?(a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),r=[new n(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}const s=[0],l=[0],c=this.ComputeRecursionPoint(e,t,i,o,s,l,r),d=s[0],u=l[0];if(null!==c)return c;if(!r[0]){const s=this.ComputeDiffRecursive(e,d,i,u,r);let a=[];return a=r[0]?[new n(d+1,t-(d+1)+1,u+1,o-(u+1)+1)]:this.ComputeDiffRecursive(d+1,t,u+1,o,r),this.ConcatenateChanges(s,a)}return[new n(e,t-e+1,i,o-i+1)]}WALKTRACE(e,t,i,o,r,s,a,l,d,u,h,g,p,f,m,v,_,b){let y=null,w=null,C=new c,S=t,x=i,k=p[0]-v[0]-o,L=-1073741824,E=this.m_forwardHistory.length-1;do{const t=k+e;t===S||t=0&&(d=this.m_forwardHistory[E],e=d[0],S=1,x=d.length-1)}while(--E>=-1);if(y=C.getReverseChanges(),b[0]){let e=p[0]+1,t=v[0]+1;if(null!==y&&y.length>0){const i=y[y.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}w=[new n(e,g-e+1,t,m-t+1)]}else{C=new c,S=s,x=a,k=p[0]-v[0]-l,L=1073741824,E=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=k+r;e===S||e=u[e+1]?(h=u[e+1]-1,f=h-k-l,h>L&&C.MarkNextChange(),L=h+1,C.AddOriginalElement(h+1,f+1),k=e+1-r):(h=u[e-1],f=h-k-l,h>L&&C.MarkNextChange(),L=h,C.AddModifiedElement(h+1,f+1),k=e-1-r),E>=0&&(u=this.m_reverseHistory[E],r=u[0],S=1,x=u.length-1)}while(--E>=-1);w=C.getChanges()}return this.ConcatenateChanges(y,w)}ComputeRecursionPoint(e,t,i,o,r,s,a){let c=0,d=0,u=0,h=0,g=0,p=0;e--,i--,r[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(o-i),m=f+1,v=new Int32Array(m),_=new Int32Array(m),b=o-i,y=t-e,w=e-i,C=t-o,S=y-b,x=S%2===0;v[b]=e,_[y]=t,a[0]=!1;for(let k=1;k<=f/2+1;k++){let f=0,S=0;u=this.ClipDiagonalBound(b-k,k,b,m),h=this.ClipDiagonalBound(b+k,k,b,m);for(let e=u;e<=h;e+=2){c=e===u||ef+S&&(f=c,S=d),!x&&Math.abs(e-y)<=k-1&&c>=_[e])return r[0]=c,s[0]=d,i<=_[e]&&k<=1448?this.WALKTRACE(b,u,h,w,y,g,p,C,v,_,c,t,r,d,o,s,x,a):null}const L=(f-e+(S-i)-k)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,L))return a[0]=!0,r[0]=f,s[0]=S,L>0&&k<=1448?this.WALKTRACE(b,u,h,w,y,g,p,C,v,_,c,t,r,d,o,s,x,a):(e++,i++,[new n(e,t-e+1,i,o-i+1)]);g=this.ClipDiagonalBound(y-k,k,y,m),p=this.ClipDiagonalBound(y+k,k,y,m);for(let n=g;n<=p;n+=2){c=n===g||n=_[n+1]?_[n+1]-1:_[n-1],d=c-(n-y)-C;const l=c;while(c>e&&d>i&&this.ElementsAreEqual(c,d))c--,d--;if(_[n]=c,x&&Math.abs(n-b)<=k&&c<=v[n])return r[0]=c,s[0]=d,l>=v[n]&&k<=1448?this.WALKTRACE(b,u,h,w,y,g,p,C,v,_,c,t,r,d,o,s,x,a):null}if(k<=1447){let e=new Int32Array(h-u+2);e[0]=b-u+1,l.Copy2(v,u,e,1,h-u+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=y-g+1,l.Copy2(_,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,u,h,w,y,g,p,C,v,_,c,t,r,d,o,s,x,a)}PrettifyChanges(e){for(let t=0;t0,s=i.modifiedLength>0;while(i.originalStart+i.originalLength=0;t--){const i=e[t];let n=0,o=0;if(t>0){const i=e[t-1];n=i.originalStart+i.originalLength,o=i.modifiedStart+i.modifiedLength}const r=i.originalLength>0,s=i.modifiedLength>0;let a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,c=i.modifiedStart-e;if(tl&&(l=u,a=e)}i.originalStart-=a,i.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,i=e.length;t0&&t>a&&(a=t,l=d,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let o=0;o=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){const o=this._OriginalRegionIsBoundary(e,t)?1:0,r=this._ModifiedRegionIsBoundary(i,n)?1:0;return o+r}ConcatenateChanges(e,t){const i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return l.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],l.Copy(t,1,n,e.length,t.length-1),n}{const i=new Array(e.length+t.length);return l.Copy(e,0,i,0,e.length),l.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const o=e.originalStart;let r=e.originalLength;const s=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new n(o,r,s,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&e{"use strict";i.d(t,{B8:()=>p,Cp:()=>s,F0:()=>u,FU:()=>d,L6:()=>g,b1:()=>h,dL:()=>r,he:()=>m,n2:()=>c,ri:()=>a});class n{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(f.isErrorNoTelemetry(e))throw new f(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const o=new n;function r(e){c(e)||o.onUnexpectedError(e)}function s(e){c(e)||o.onUnexpectedExternalError(e)}function a(e){if(e instanceof Error){const{name:t,message:i}=e,n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:i,stack:n,noTelemetry:f.isErrorNoTelemetry(e)}}return e}const l="Canceled";function c(e){return e instanceof d||e instanceof Error&&e.name===l&&e.message===l}class d extends Error{constructor(){super(l),this.name=this.message}}function u(){const e=new Error(l);return e.name=e.message,e}function h(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function g(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class p extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class f extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof f)return e;const t=new f;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},11271:(e,t,i)=>{"use strict";i.d(t,{D0:()=>C,E7:()=>k,K3:()=>w,Q5:()=>_,SZ:()=>S,Sp:()=>b,ZD:()=>L,ju:()=>d,z5:()=>x});var n=i(98642),o=i(81332),r=i(70959),s=i(33010),a=i(96729);const l=!1,c=!1;var d;(function(e){function t(e){if(c){const{onDidAddListener:t}=e,i=p.create();let n=0;e.onDidAddListener=()=>{2===++n&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),i.print()),null===t||void 0===t||t()}}}function i(e,t){return f(e,(()=>{}),0,void 0,!0,void 0,t)}function n(e){return(t,i=null,n)=>{let o,r=!1;return o=e((e=>{if(!r)return o?o.dispose():r=!0,t.call(i,e)}),null,n),r&&o.dispose(),o}}function o(e,t,i){return h(((i,n=null,o)=>e((e=>i.call(n,t(e))),null,o)),i)}function s(e,t,i){return h(((i,n=null,o)=>e((e=>{t(e),i.call(n,e)}),null,o)),i)}function a(e,t,i){return h(((i,n=null,o)=>e((e=>t(e)&&i.call(n,e)),null,o)),i)}function l(e){return e}function d(...e){return(t,i=null,n)=>{const o=(0,r.F8)(...e.map((e=>e((e=>t.call(i,e))))));return g(o,n)}}function u(e,t,i,n){let r=i;return o(e,(e=>(r=t(r,e),r)),n)}function h(e,i){let n;const o={onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){null===n||void 0===n||n.dispose()}};i||t(o);const r=new _(o);return null===i||void 0===i||i.add(r),r.event}function g(e,t){return t instanceof Array?t.push(e):t&&t.add(e),e}function f(e,i,n=100,o=!1,r=!1,s,a){let l,c,d,u,h=0;const g={leakWarningThreshold:s,onWillAddFirstListener(){l=e((e=>{h++,c=i(c,e),o&&!d&&(p.fire(c),c=void 0),u=()=>{const e=c;c=void 0,d=void 0,(!o||h>1)&&p.fire(e),h=0},"number"===typeof n?(clearTimeout(d),d=setTimeout(u,n)):void 0===d&&(d=0,queueMicrotask(u))}))},onWillRemoveListener(){r&&h>0&&(null===u||void 0===u||u())},onDidRemoveLastListener(){u=void 0,l.dispose()}};a||t(g);const p=new _(g);return null===a||void 0===a||a.add(p),p.event}function m(t,i=0,n){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),i,void 0,!0,void 0,n)}function v(e,t=((e,t)=>e===t),i){let n,o=!0;return a(e,(e=>{const i=o||!t(e,n);return o=!1,n=e,i}),i)}function b(t,i,n){return[e.filter(t,i,n),e.filter(t,(e=>!i(e)),n)]}function y(e,t=!1,i=[],n){let o=i.slice(),r=e((e=>{o?o.push(e):a.fire(e)}));n&&n.add(r);const s=()=>{null===o||void 0===o||o.forEach((e=>a.fire(e))),o=null},a=new _({onWillAddFirstListener(){r||(r=e((e=>a.fire(e))),n&&n.add(r))},onDidAddFirstListener(){o&&(t?setTimeout(s):s())},onDidRemoveLastListener(){r&&r.dispose(),r=null}});return n&&n.add(a),a.event}function w(e,t){const i=(i,n,o)=>{const r=t(new S);return e((function(e){const t=r.evaluate(e);t!==C&&i.call(n,t)}),void 0,o)};return i}e.None=()=>r.JT.None,e.defer=i,e.once=n,e.map=o,e.forEach=s,e.filter=a,e.signal=l,e.any=d,e.reduce=u,e.debounce=f,e.accumulate=m,e.latch=v,e.split=b,e.buffer=y,e.chain=w;const C=Symbol("HaltChainable");class S{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:C)),this}reduce(e,t){let i=t;return this.steps.push((t=>(i=e(i,t),i))),this}latch(e=((e,t)=>e===t)){let t,i=!0;return this.steps.push((n=>{const o=i||!e(n,t);return i=!1,t=n,o?n:C})),this}evaluate(e){for(const t of this.steps)if(e=t(e),e===C)break;return e}}function x(e,t,i=(e=>e)){const n=(...e)=>s.fire(i(...e)),o=()=>e.on(t,n),r=()=>e.removeListener(t,n),s=new _({onWillAddFirstListener:o,onDidRemoveLastListener:r});return s.event}function k(e,t,i=(e=>e)){const n=(...e)=>s.fire(i(...e)),o=()=>e.addEventListener(t,n),r=()=>e.removeEventListener(t,n),s=new _({onWillAddFirstListener:o,onDidRemoveLastListener:r});return s.event}function L(e){return new Promise((t=>n(e)(t)))}function E(e){const t=new _;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event}function N(e,t,i){return t(i),e((e=>t(e)))}e.fromNodeEventEmitter=x,e.fromDOMEventEmitter=k,e.toPromise=L,e.fromPromise=E,e.runAndSubscribe=N;class D{constructor(e,i){this._observable=e,this._counter=0,this._hasChanged=!1;const n={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};i||t(n),this.emitter=new _(n),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function T(e,t){const i=new D(e,t);return i.emitter.event}function I(e){return(t,i,n)=>{let o=0,s=!1;const a={beginUpdate(){o++},endUpdate(){o--,0===o&&(e.reportChanges(),s&&(s=!1,t.call(i)))},handlePossibleChange(){},handleChange(){s=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return n instanceof r.SL?n.add(l):Array.isArray(n)&&n.push(l),l}}e.fromObservable=T,e.fromObservableLight=I})(d||(d={}));class u{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${u._idPool++}`,u.all.add(this)}start(e){this._stopWatch=new a.G,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}u.all=new Set,u._idPool=0;let h=-1;class g{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const i=this.threshold;if(i<=0||t{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class p{static create(){var e;return new p(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class f{constructor(e){this.value=e}}const m=2,v=(e,t)=>{if(e instanceof f)t(e);else for(let i=0;i0||(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new g(null!==(n=null===(i=this._options)||void 0===i?void 0:i.leakWarningThreshold)&&void 0!==n?n:h):void 0,this._perfMon=(null===(o=this._options)||void 0===o?void 0:o._profName)?new u(this._options._profName):void 0,this._deliveryQueue=null===(r=this._options)||void 0===r?void 0:r.deliveryQueue}dispose(){var e,t,i,n;if(!this._disposed){if(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners){if(l){const e=this._listeners;queueMicrotask((()=>{v(e,(e=>{var t;return null===(t=e.stack)||void 0===t?void 0:t.print()}))}))}this._listeners=void 0,this._size=0}null===(i=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose()}}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,i)=>{var n,o,s,a,c;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),r.JT.None;if(this._disposed)return r.JT.None;t&&(e=e.bind(t));const d=new f(e);let u,h;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(d.stack=p.create(),u=this._leakageMon.check(d.stack,this._size+1)),l&&(d.stack=null!==h&&void 0!==h?h:p.create()),this._listeners?this._listeners instanceof f?(null!==(c=this._deliveryQueue)&&void 0!==c||(this._deliveryQueue=new y),this._listeners=[this._listeners,d]):this._listeners.push(d):(null===(o=null===(n=this._options)||void 0===n?void 0:n.onWillAddFirstListener)||void 0===o||o.call(n,this),this._listeners=d,null===(a=null===(s=this._options)||void 0===s?void 0:s.onDidAddFirstListener)||void 0===a||a.call(s,this)),this._size++;const g=(0,r.OF)((()=>{null===u||void 0===u||u(),this._removeListener(d)}));return i instanceof r.SL?i.add(g):Array.isArray(i)&&i.push(g),g}),this._event}_removeListener(e){var t,i,n,o;if(null===(i=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===i||i.call(t,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(o=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===o||o.call(n,this),void(this._size=0);const r=this._listeners,s=r.indexOf(e);if(-1===s)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,r[s]=void 0;const a=this._deliveryQueue.current===this;if(this._size*m<=r.length){let e=0;for(let t=0;t0}}const b=()=>new y;class y{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class w extends _{constructor(e){super(e),this._isPaused=0,this._eventQueue=new s.S,this._mergeFn=null===e||void 0===e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else while(!this._isPaused&&0!==this._eventQueue.size)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class C extends w{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class S extends _{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null===e||void 0===e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask((()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach((e=>super.fire(e))),this._queuedEvents=[]})))}}class x{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new _({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);const i=()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)};return(0,r.OF)((0,o.M)(i))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach((e=>this.hook(e)))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach((e=>this.unhook(e)))}hook(e){e.listener=e.event((e=>this.emitter.fire(e)))}unhook(e){var t;null===(t=e.listener)||void 0===t||t.dispose(),e.listener=null}dispose(){var e;this.emitter.dispose();for(const t of this.events)null===(e=t.listener)||void 0===e||e.dispose();this.events=[]}}class k{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e((e=>{const n=this.buffers[this.buffers.length-1];n?n.push((()=>t.call(i,e))):t.call(i,e)}),void 0,n)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach((e=>e())),i}}class L{constructor(){this.listening=!1,this.inputEvent=d.None,this.inputEventListener=r.JT.None,this.emitter=new _({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},1535:(e,t,i)=>{"use strict";i.d(t,{KM:()=>d,ej:()=>a,fn:()=>l,oP:()=>h,yj:()=>c});var n=i(19912),o=i(47606),r=i(61720);function s(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,n.KR.sep)}function l(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function c(e,t=n.KR.sep){if(!e)return"";const i=e.length,o=e.charCodeAt(0);if(s(o)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let n=3;const o=n;for(;ne.length)return!1;if(i){const i=(0,r.ok)(e,t);if(!i)return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===o&&n--,e.charAt(n)===o}return t.charAt(t.length-1)!==o&&(t+=o),0===e.indexOf(t)}function u(e){return e>=65&&e<=90||e>=97&&e<=122}function h(e,t=o.ED){return!!t&&(u(e.charCodeAt(0))&&58===e.charCodeAt(1))}},90774:(e,t,i)=>{"use strict";i.d(t,{CL:()=>de,mX:()=>ue,jB:()=>K,mB:()=>G,EW:()=>he,l7:()=>fe,ir:()=>_,Oh:()=>$,XU:()=>q,Ji:()=>m,Sy:()=>b,KZ:()=>H,or:()=>f});var n=i(71400);function o(e){const t=a(e);if(t&&t.length>0)return new Uint32Array(t)}let r=0;const s=new Uint32Array(10);function a(e){if(r=0,l(e,d,4352),r>0)return s.subarray(0,r);if(l(e,u,4449),r>0)return s.subarray(0,r);if(l(e,h,4520),r>0)return s.subarray(0,r);if(l(e,g,12593),r)return s.subarray(0,r);if(e>=44032&&e<=55203){const t=e-44032,i=t%588,n=Math.floor(t/588),o=Math.floor(i/28),a=i%28-1;if(n=0&&(a0)return s.subarray(0,r)}}function l(e,t,i){e>=i&&e>8&&(s[r++]=e>>8&255),e>>16&&(s[r++]=e>>16&255))}const d=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),u=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),h=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),g=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);var p=i(61720);function f(...e){return function(t,i){for(let n=0,o=e.length;n0?[{start:0,end:t.length}]:[]:null}function _(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function b(e,t){return y(e.toLowerCase(),t.toLowerCase(),0,0)}function y(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]===t[n]){let o=null;return(o=y(e,t,i+1,n+1))?I({start:n,end:n+1},o):null}return y(e,t,i,n+1)}function w(e){return 97<=e&&e<=122}function C(e){return 65<=e&&e<=90}function S(e){return 48<=e&&e<=57}function x(e){return 32===e||9===e||10===e||13===e}const k=new Set;function L(e){return x(e)||k.has(e)}function E(e,t){return e===t||L(e)&&L(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>k.add(e.charCodeAt(0))));const N=new Map;function D(e){if(N.has(e))return N.get(e);let t;const i=o(e);return i&&(t=i),N.set(e,t),t}function T(e){return w(e)||C(e)||S(e)}function I(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function R(e,t){for(let i=t;i0&&!T(e.charCodeAt(i-1)))return i}return e.length}function A(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]!==t[n].toLowerCase())return null;{let o=null,r=n+1;o=A(e,t,i+1,n+1);while(!o&&(r=R(t,r)).6}function M(e){const{upperPercent:t,lowerPercent:i,alphaPercent:n,numericPercent:o}=e;return i>.2&&t<.8&&n>.6&&o<.2}function F(e){let t=0,i=0,n=0,o=0;for(let r=0;r60&&(t=t.substring(0,60));const i=O(t);if(!M(i)){if(!P(i))return null;t=t.toLowerCase()}let n=null,o=0;e=e.toLowerCase();while(o0&&L(e.charCodeAt(i-1)))return i;return e.length}const j=f(m,B,_),z=f(m,B,b),U=new n.z6(1e4);function $(e,t,i=!1){if("string"!==typeof e||"string"!==typeof t)return null;let n=U.get(e);n||(n=new RegExp(p.un(e),"i"),U.set(e,n));const o=n.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:i?z(e,t):j(e,t)}function q(e,t){const i=he(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?G(i):null}function K(e,t,i,n,o,r){const s=Math.min(13,e.length);for(;i1;n--){const o=e[n]+i,r=t[t.length-1];r&&r.end===o?r.end=o+1:t.push({start:o,end:o+1})}return t}const Z=128;function Q(){const e=[],t=[];for(let i=0;i<=Z;i++)t[i]=0;for(let i=0;i<=Z;i++)e.push(t.slice(0));return e}function Y(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const J=Y(2*Z),X=Y(2*Z),ee=Q(),te=Q(),ie=Q(),ne=!1;function oe(e,t,i,n,o){function r(e,t,i=" "){while(e.lengthr(e,3))).join("|")}\n`;for(let a=0;a<=i;a++)s+=0===a?" |":`${t[a-1]}|`,s+=e[a].slice(0,o+1).map((e=>r(e.toString(),3))).join("|")+"\n";return s}function re(e,t,i,n){e=e.substr(t),i=i.substr(n),console.log(oe(te,e,e.length,i,i.length)),console.log(oe(ie,e,e.length,i,i.length)),console.log(oe(ee,e,e.length,i,i.length))}function se(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!p.C8(i)}}function ae(e,t){if(t<0||t>=e.length)return!1;const i=e.charCodeAt(t);switch(i){case 32:case 9:return!0;default:return!1}}function le(e,t,i){return t[e]!==i[e]}function ce(e,t,i,n,o,r,s=!1){while(tZ?Z:e.length,l=n.length>Z?Z:n.length;if(i>=a||r>=l||a-i>l-r)return;if(!ce(t,i,a,o,r,l,!0))return;ge(a,l,i,r,t,o);let c=1,d=1,u=i,h=r;const g=[!1];for(c=1,u=i;us,_=v?te[c][d-1]+(ee[c][d-1]>0?-5:0):0,b=h>s+1&&ee[c][d-1]>0,y=b?te[c][d-2]+(ee[c][d-2]>0?-5:0):0;if(b&&(!v||y>=_)&&(!f||y>=m))te[c][d]=y,ie[c][d]=3,ee[c][d]=0;else if(v&&(!f||_>=m))te[c][d]=_,ie[c][d]=2,ee[c][d]=0;else{if(!f)throw new Error("not possible");te[c][d]=m,ie[c][d]=1,ee[c][d]=ee[c-1][d-1]+1}}}if(ne&&re(e,i,n,r),!g[0]&&!s.firstMatchCanBeWeak)return;c--,d--;const p=[te[c][d],r];let f=0,m=0;while(c>=1){let e=d;do{const t=ie[c][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);f>1&&t[i+c-1]===o[r+d-1]&&!le(e+r-1,n,o)&&f+1>ee[c][e]&&(e=d),e===d?f++:f=1,m||(m=e),c--,d=e-1,p.push(d)}l===a&&s.boostFullMatch&&(p[0]+=2);const v=m-a;return p[0]-=v,p}function ge(e,t,i,n,o,r){let s=e-1,a=t-1;while(s>=i&&a>=n)o[s]===r[a]&&(X[s]=a,s--),a--}function pe(e,t,i,n,o,r,s,a,l,c,d){if(t[i]!==r[s])return Number.MIN_SAFE_INTEGER;let u=1,h=!1;return s===i-n?u=e[i]===o[s]?7:5:!le(s,o,r)||0!==s&&le(s-1,o,r)?!se(r,s)||0!==s&&se(r,s-1)?(se(r,s-1)||ae(r,s-1))&&(u=5,h=!0):u=5:(u=e[i]===o[s]?7:5,h=!0),u>1&&i===n&&(d[0]=!0),h||(h=le(s,o,r)||se(r,s-1)||ae(r,s-1)),i===n?s>l&&(u-=h?3:5):u+=c?h?2:0:h?0:1,s+1===a&&(u-=h?3:5),u}function fe(e,t,i,n,o,r,s){return me(e,t,i,n,o,r,!0,s)}function me(e,t,i,n,o,r,s,a){let l=he(e,t,i,n,o,r,a);if(l&&!s)return l;if(e.length>=3){const t=Math.min(7,e.length-1);for(let s=i+1;sl[0])&&(l=e))}}}return l}function ve(e,t){if(t+1>=e.length)return;const i=e[t],n=e[t+1];return i!==n?e.slice(0,t)+n+i+e.slice(t+2):void 0}ue.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}},81332:(e,t,i)=>{"use strict";function n(e,t){const i=this;let n,o=!1;return function(){if(o)return n;if(o=!0,t)try{n=e.apply(i,arguments)}finally{t()}else n=e.apply(i,arguments);return n}}i.d(t,{M:()=>n})},48079:(e,t,i)=>{"use strict";i.d(t,{EQ:()=>O,Qc:()=>P});var n=i(85398),o=i(1535),r=i(71400),s=i(19912),a=i(47606),l=i(61720);const c="**",d="/",u="[/\\\\]",h="[^/\\\\]",g=/\//g;function p(e,t){switch(e){case 0:return"";case 1:return`${h}*?`;default:return`(?:${u}|${h}+${u}${t?`|${u}${h}+`:""})*?`}}function f(e,t){if(!e)return[];const i=[];let n=!1,o=!1,r="";for(const s of e){switch(s){case t:if(!n&&!o){i.push(r),r="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":o=!0;break;case"]":o=!1;break}r+=s}return r&&i.push(r),i}function m(e){if(!e)return"";let t="";const i=f(e,d);if(i.every((e=>e===c)))t=".*";else{let e=!1;i.forEach(((n,o)=>{if(n===c){if(e)return;t+=p(2,o===i.length-1)}else{let e=!1,r="",s=!1,a="";for(const i of n)if("}"!==i&&e)r+=i;else if(!s||"]"===i&&a)switch(i){case"{":e=!0;continue;case"[":s=!0;continue;case"}":{const i=f(r,","),n=`(?:${i.map((e=>m(e))).join("|")})`;t+=n,e=!1,r="";break}case"]":t+="["+a+"]",s=!1,a="";break;case"?":t+=h;continue;case"*":t+=p(1);continue;default:t+=(0,l.ec)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||a?i===d?"":(0,l.ec)(i):"^",a+=e}oL(e,t))).filter((e=>e!==k)),e),n=i.length;if(!n)return k;if(1===n)return i[0];const o=function(t,n){for(let o=0,r=i.length;o!!e.allBasenames));r&&(o.allBasenames=r.allBasenames);const s=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(o.allPaths=s),o}function R(e,t,i){const n=s.ir===s.KR.sep,o=n?e:e.replace(g,s.ir),r=s.ir+o,a=s.KR.sep+e;let l;return l=i?function(i,s){return"string"!==typeof i||i!==o&&!i.endsWith(r)&&(n||i!==e&&!i.endsWith(a))?null:t}:function(i,r){return"string"!==typeof i||i!==o&&(n||i!==e)?null:t},l.allPaths=[(i?"*/":"./")+e],l}function A(e){try{const t=new RegExp(`^${m(e)}$`);return function(i){return t.lastIndex=0,"string"===typeof i&&t.test(i)?e:null}}catch(t){return k}}function O(e,t,i){return!(!e||"string"!==typeof t)&&P(e)(t,void 0,i)}function P(e,t={}){if(!e)return x;if("string"===typeof e||M(e)){const i=L(e,t);if(i===k)return x;const n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return F(e,t)}function M(e){const t=e;return!!t&&("string"===typeof t.base&&"string"===typeof t.pattern)}function F(e,t){const i=H(Object.getOwnPropertyNames(e).map((i=>B(i,e[i],t))).filter((e=>e!==k))),o=i.length;if(!o)return k;if(!i.some((e=>!!e.requiresSiblings))){if(1===o)return i[0];const e=function(e,t){let o;for(let r=0,s=i.length;r{for(const e of o){const t=await e;if("string"===typeof t)return t}return null})():null},t=i.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(e.allPaths=r),e}const r=function(e,t,o){let r,a;for(let l=0,c=i.length;l{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=i.find((e=>!!e.allBasenames));a&&(r.allBasenames=a.allBasenames);const l=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return l.length&&(r.allPaths=l),r}function B(e,t,i){if(!1===t)return k;const o=L(e,i);if(o===k)return k;if("boolean"===typeof t)return o;if(t){const i=t.when;if("string"===typeof i){const t=(t,r,s,a)=>{if(!a||!o(t,r))return null;const l=i.replace("$(basename)",(()=>s)),c=a(l);return(0,n.J8)(c)?c.then((t=>t?e:null)):c?e:null};return t.requiresSiblings=!0,t}}return o}function H(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const n=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let o;if(t){o=[];for(let e=0,i=n.length;e{const i=t.patterns;return i?e.concat(i):e}),[]);const r=function(e,t){if("string"!==typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=n.indexOf(t);return-1!==i?o[i]:null};r.basenames=n,r.patterns=o,r.allBasenames=n;const s=e.filter((e=>!e.basenames));return s.push(r),s}},63381:(e,t,i)=>{"use strict";i.d(t,{Cv:()=>l,SP:()=>r,vp:()=>o,yP:()=>f});var n=i(61720);function o(e){return r(e,0)}function r(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?c(e,t):d(e,t);case"string":return l(e,t);case"boolean":return a(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}}function s(e,t){return(t<<5)-t+e|0}function a(e,t){return s(e?433:863,t)}function l(e,t){t=s(149417,t);for(let i=0,n=e.length;ir(t,e)),t)}function d(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=l(i,t),r(e[i],t))),t)}function u(e,t,i=32){const n=i-t,o=~((1<>>n)>>>0}function h(e,t=0,i=e.byteLength,n=0){for(let o=0;oe.toString(16).padStart(2,"0"))).join(""):g((e>>>0).toString(16),t/4)}class f{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let o,r,s=this._buffLen,a=this._leftoverHighSurrogate;0!==a?(o=a,r=-1,a=0):(o=e.charCodeAt(0),r=0);while(1){let l=o;if(n.ZG(o)){if(!(r+1>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),p(this._h0)+p(this._h1)+p(this._h2)+p(this._h3)+p(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,h(this._buff,this._buffLen),this._buffLen>56&&(this._step(),h(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=f._bigBlock32,t=this._buffDV;for(let d=0;d<64;d+=4)e.setUint32(d,t.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,u(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let i,n,o,r=this._h0,s=this._h1,a=this._h2,l=this._h3,c=this._h4;for(let d=0;d<80;d++)d<20?(i=s&a|~s&l,n=1518500249):d<40?(i=s^a^l,n=1859775393):d<60?(i=s&a|s&l|a&l,n=2400959708):(i=s^a^l,n=3395469782),o=u(r,5)+i+c+n+e.getUint32(4*d,!1)&4294967295,c=l,l=a,a=u(s,30),s=r,r=o;this._h0=this._h0+r&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+c&4294967295}}f._bigBlock32=new DataView(new ArrayBuffer(320))},81478:(e,t,i)=>{"use strict";i.d(t,{CP:()=>c,Fr:()=>d,W5:()=>l,d9:()=>p,g_:()=>u,oR:()=>f,v1:()=>m});var n=i(98642),o=i(96559),r=i(21230),s=i(61720),a=i(95896);class l{constructor(e="",t=!1){var i,o,r;if(this.value=e,"string"!==typeof this.value)throw(0,n.b1)("value");"boolean"===typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=null!==(i=t.isTrusted)&&void 0!==i?i:void 0,this.supportThemeIcons=null!==(o=t.supportThemeIcons)&&void 0!==o&&o,this.supportHtml=null!==(r=t.supportHtml)&&void 0!==r&&r)}appendText(e,t=0){return this.value+=h(this.supportThemeIcons?(0,o.Qo)(e):e).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`\n${g(t,e)}\n`,this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp((0,s.ec)(t),"g");return e.replace(i,((t,i)=>"\\"!==e.charAt(i-1)?`\\${t}`:t))}}function c(e){return d(e)?!e.value:!Array.isArray(e)||e.every(c)}function d(e){return e instanceof l||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||"object"===typeof e.isTrusted||void 0===e.isTrusted)&&("boolean"===typeof e.supportThemeIcons||void 0===e.supportThemeIcons))}function u(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons&&e.supportHtml===t.supportHtml&&(e.baseUri===t.baseUri||!!e.baseUri&&!!t.baseUri&&(0,r.Xy)(a.o.from(e.baseUri),a.o.from(t.baseUri))))}function h(e){return e.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function g(e,t){var i,n;const o=null!==(n=null===(i=e.match(/^`+/gm))||void 0===i?void 0:i.reduce(((e,t)=>e.length>t.length?e:t)).length)&&void 0!==n?n:0,r=o>=3?o+1:3;return[`${"`".repeat(r)}${t}`,e,`${"`".repeat(r)}`].join("\n")}function p(e){return e.replace(/"/g,""")}function f(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}function m(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const n=i[1];if(n){const e=/height=(\d+)/.exec(n),i=/width=(\d+)/.exec(n),o=e?e[1]:"",r=i?i[1]:"",s=isFinite(parseInt(r)),a=isFinite(parseInt(o));s&&t.push(`width="${r}"`),a&&t.push(`height="${o}"`)}return{href:e,dimensions:t}}},96559:(e,t,i)=>{"use strict";i.d(t,{Gt:()=>v,Ho:()=>m,JL:()=>p,Qo:()=>c,f$:()=>u,x$:()=>g});var n=i(90774),o=i(61720),r=i(99588);const s="$(",a=new RegExp(`\\$\\(${r.k.iconNameExpression}(?:${r.k.iconModifierExpression})?\\)`,"g"),l=new RegExp(`(\\\\)?${a.source}`,"g");function c(e){return e.replace(l,((e,t)=>t?e:`\\${e}`))}const d=new RegExp(`\\\\${a.source}`,"g");function u(e){return e.replace(d,(e=>`\\${e}`))}const h=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(s)?e:e.replace(h,((e,t,i,n)=>i?e:t||n||""))}function p(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}const f=new RegExp(`\\$\\(${r.k.iconNameCharacter}+\\)`,"g");function m(e){f.lastIndex=0;let t="";const i=[];let n=0;while(1){const o=f.lastIndex,r=f.exec(e),s=e.substring(o,null===r||void 0===r?void 0:r.index);if(s.length>0){t+=s;for(let e=0;e{"use strict";i.d(t,{R:()=>n,a:()=>o});class n{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const o=new n("id#")},73218:(e,t,i)=>{"use strict";i.d(t,{F:()=>r});var n=i(11271);class o{constructor(){this._onDidChange=new n.Q5,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}const r=new o},39595:(e,t,i)=>{"use strict";var n;i.d(t,{$:()=>n}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function n(){return i}function*o(e){yield e}function r(e){return t(e)?e:o(e)}function s(e){return e||i}function*a(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function l(e){return!e||!0===e[Symbol.iterator]().next().done}function c(e){return e[Symbol.iterator]().next().value}function d(e,t){for(const i of e)if(t(i))return!0;return!1}function u(e,t){for(const i of e)if(t(i))return i}function*h(e,t){for(const i of e)t(i)&&(yield i)}function*g(e,t){let i=0;for(const n of e)yield t(n,i++)}function*p(...e){for(const t of e)yield*t}function f(e,t,i){let n=i;for(const o of e)n=t(n,o);return n}function*m(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t{"use strict";i.d(t,{H_:()=>a,Vd:()=>h,gx:()=>f,kL:()=>p});class n{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const o=new n,r=new n,s=new n,a=new Array(230),l={},c=[],d=Object.create(null),u=Object.create(null),h=[],g=[];for(let m=0;m<=193;m++)h[m]=-1;for(let m=0;m<=132;m++)g[m]=-1;var p;function f(e,t){const i=(65535&t)<<16>>>0;return(e|i)>>>0}(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],n=[];for(const p of t){const[e,t,f,m,v,_,b,y,w]=p;if(n[t]||(n[t]=!0,c[t]=f,d[f]=t,u[f.toLowerCase()]=t,e&&(h[t]=m,0!==m&&3!==m&&5!==m&&4!==m&&6!==m&&57!==m&&(g[m]=t))),!i[m]){if(i[m]=!0,!v)throw new Error(`String representation missing for key code ${m} around scan code ${f}`);o.define(m,v),r.define(m,y||v),s.define(m,w||y||v)}_&&(a[_]=m),b&&(l[b]=m)}g[3]=46})(),function(e){function t(e){return o.keyCodeToStr(e)}function i(e){return o.strToKeyCode(e)}function n(e){return r.keyCodeToStr(e)}function a(e){return s.keyCodeToStr(e)}function l(e){return r.strToKeyCode(e)||s.strToKeyCode(e)}function c(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return o.keyCodeToStr(e)}e.toString=t,e.fromString=i,e.toUserSettingsUS=n,e.toUserSettingsGeneral=a,e.fromUserSettings=l,e.toElectronAccelerator=c}(p||(p={}))},9501:(e,t,i)=>{"use strict";i.d(t,{X4:()=>s,jC:()=>a,r6:()=>l,xo:()=>r});var n=i(25206);class o{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const n=[];for(let o=0,r=t.length;o{"use strict";i.d(t,{$M:()=>s,Z9:()=>o,aZ:()=>l,f1:()=>c});var n=i(98642);function o(e,t){if("number"===typeof e){if(0===e)return null;const i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new a(0!==n?[r(i,t),r(n,t)]:[r(i,t)])}{const i=[];for(let n=0;n{"use strict";i.d(t,{o:()=>n});class n{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},70959:(e,t,i)=>{"use strict";i.d(t,{B9:()=>p,F8:()=>f,JT:()=>_,Jz:()=>w,L6:()=>y,Nq:()=>c,OF:()=>m,SL:()=>v,Wf:()=>g,XK:()=>b,b2:()=>C,dk:()=>h,wi:()=>l});var n=i(81332),o=i(39595);const r=!1;let s=null;function a(e){s=e}if(r){const e="__is_disposable_tracked__";a(new class{trackDisposable(t){const i=new Error("Potentially leaked disposable").stack;setTimeout((()=>{t[e]||console.log(i)}),3e3)}setParent(t,i){if(t&&t!==_.None)try{t[e]=!0}catch(n){}}markAsDisposed(t){if(t&&t!==_.None)try{t[e]=!0}catch(i){}}markAsSingleton(e){}})}function l(e){return null===s||void 0===s||s.trackDisposable(e),e}function c(e){null===s||void 0===s||s.markAsDisposed(e)}function d(e,t){null===s||void 0===s||s.setParent(e,t)}function u(e,t){if(s)for(const i of e)s.setParent(i,t)}function h(e){return null===s||void 0===s||s.markAsSingleton(e),e}function g(e){return"function"===typeof e.dispose&&0===e.dispose.length}function p(e){if(o.$.is(e)){const i=[];for(const n of e)if(n)try{n.dispose()}catch(t){i.push(t)}if(1===i.length)throw i[0];if(i.length>1)throw new AggregateError(i,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function f(...e){const t=m((()=>p(e)));return u(e,t),t}function m(e){const t=l({dispose:(0,n.M)((()=>{c(t),e()}))});return t}class v{constructor(){this._toDispose=new Set,this._isDisposed=!1,l(this)}dispose(){this._isDisposed||(c(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{p(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return d(e,this),this._isDisposed?v.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),d(e,null))}}v.DISABLE_DISPOSED_WARNING=!1;class _{constructor(){this._store=new v,l(this),d(this._store,this)}dispose(){c(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}_.None=Object.freeze({dispose(){}});class b{constructor(){this._isDisposed=!1,l(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&d(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,c(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class y{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class w{constructor(e){this.object=e}dispose(){}}class C{constructor(){this._store=new Map,this._isDisposed=!1,l(this)}dispose(){c(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{p(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},33010:(e,t,i)=>{"use strict";i.d(t,{S:()=>o});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class o{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;while(e!==n.Undefined){const t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;while(e!==n.Undefined)yield e.element,e=e.next}}},71400:(e,t,i)=>{"use strict";var n,o;i.d(t,{Y9:()=>a,YQ:()=>d,ri:()=>u,z6:()=>c});class r{constructor(e,t){this.uri=e,this.value=t}}function s(e){return Array.isArray(e)}class a{constructor(e,t){if(this[n]="ResourceMap",e instanceof a)this.map=new Map(e.map),this.toKey=null!==t&&void 0!==t?t:a.defaultToKey;else if(s(e)){this.map=new Map,this.toKey=null!==t&&void 0!==t?t:a.defaultToKey;for(const[t,i]of e)this.set(t,i)}else this.map=new Map,this.toKey=null!==e&&void 0!==e?e:a.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new r(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[i,n]of this.map)e(n.value,n.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}a.defaultToKey=e=>e.toString();class l{constructor(){this[o]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:this.addItemLast(n);break;default:this.addItemLast(n);break}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;while(n){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}[(o=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;while(t&&i>e)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class c extends l{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}class d{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class u{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},79247:(e,t,i)=>{"use strict";i.d(t,{Pz:()=>r,Qc:()=>s});var n=i(80356),o=i(95896);function r(e){return JSON.stringify(e,a)}function s(e){let t=JSON.parse(e);return t=l(t),t}function a(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function l(e,t=0){if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return o.o.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof n.KN||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i{"use strict";i.d(t,{v:()=>n});const n=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},50200:(e,t,i)=>{"use strict";i.d(t,{Gi:()=>f,Gs:()=>c,WX:()=>h,lg:()=>n,xn:()=>l});var n,o=i(98642),r=i(47606),s=i(61720),a=i(95896);function l(e,t){return a.o.isUri(e)?(0,s.qq)(e.scheme,t):(0,s.ok)(e,t+":")}function c(e,...t){return t.some((t=>l(e,t)))}(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.codeSetting="code-setting",e.codeFeature="code-feature"})(n||(n={}));const d="tkn";class u{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath=`/${n.vscodeRemoteResource}`}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(u){return o.dL(u),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const s=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&${d}=${encodeURIComponent(l)}`),a.o.from({scheme:r.$L?this._preferredWebSchema:n.vscodeRemoteResource,authority:`${i}:${s}`,path:this._remoteResourcesPath,query:c})}}const h=new u,g="vscode-app";class p{uriToBrowserUri(e){return e.scheme===n.vscodeRemote?h.rewrite(e):e.scheme!==n.file||!r.tY&&r.qB!==`${n.vscodeFileResource}://${p.FALLBACK_AUTHORITY}`?e:e.with({scheme:n.vscodeFileResource,authority:e.authority||p.FALLBACK_AUTHORITY,query:null,fragment:null})}}p.FALLBACK_AUTHORITY=g;const f=new p;var m;(function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";function n(e){let n;"string"===typeof e?n=new URL(e).searchParams:e instanceof URL?n=e.searchParams:a.o.isUri(e)&&(n=new URL(e.toString(!0)).searchParams);const o=null===n||void 0===n?void 0:n.get(i);if(o)return t.get(o)}function o(e,t,n){if(!globalThis.crossOriginIsolated)return;const o=t&&n?"3":n?"2":"1";e instanceof URLSearchParams?e.set(i,o):e[i]=o}e.getHeadersFromQuery=n,e.addSearchParam=o})(m||(m={}))},46304:(e,t,i)=>{"use strict";function n(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{N:()=>r,nM:()=>o,uZ:()=>n});class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class r{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n{"use strict";i.d(t,{$E:()=>h,I8:()=>o,IU:()=>g,_A:()=>r,fS:()=>d,jB:()=>c,rs:()=>a});var n=i(55455);function o(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach((([e,i])=>{t[e]=i&&"object"===typeof i?o(i):i})),t}function r(e){if(!e||"object"!==typeof e)return e;const t=[e];while(t.length>0){const e=t.shift();Object.freeze(e);for(const i in e)if(s.call(e,i)){const o=e[i];"object"!==typeof o||Object.isFrozen(o)||(0,n.fU)(o)||t.push(o)}}return e}const s=Object.prototype.hasOwnProperty;function a(e,t){return l(e,t,new Set)}function l(e,t,i){if((0,n.Jp)(e))return e;const o=t(e);if("undefined"!==typeof o)return o;if(Array.isArray(e)){const n=[];for(const o of e)n.push(l(o,t,i));return n}if((0,n.Kn)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const n={};for(const o in e)s.call(e,o)&&(n[o]=l(e[o],t,i));return i.delete(e),n}return e}function c(e,t,i=!0){return(0,n.Kn)(e)?((0,n.Kn)(t)&&Object.keys(t).forEach((o=>{o in e?i&&((0,n.Kn)(e[o])&&(0,n.Kn)(t[o])?c(e[o],t[o],i):e[o]=t[o]):e[o]=t[o]})),e):t}function d(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;ifunction(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(const o of e)n[o]=i(o);return n}},33755:(e,t,i)=>{"use strict";i.d(t,{EH:()=>c,nJ:()=>u,UV:()=>d,gp:()=>h,Dz:()=>p.Dz,nK:()=>o.nK,aK:()=>o.aK,bx:()=>p.bx,bk:()=>o.bk,Be:()=>o.Be,DN:()=>n.DN,rD:()=>p.rD,GN:()=>p.GN,aq:()=>p.aq,uh:()=>n.uh,jx:()=>p.DN,c8:()=>n.c8,PS:()=>n.PS,F_:()=>f});var n=i(2133),o=i(82064),r=i(65662),s=i(70959),a=i(23204),l=i(61678);function c(e){return new g(new a.IZ(void 0,void 0,e),e,void 0,void 0)}function d(e,t){var i;return new g(new a.IZ(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,void 0,void 0)}function u(e,t){var i;return new g(new a.IZ(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,e.createEmptyChangeSummary,e.handleChange)}function h(e){const t=new s.SL,i=d({owner:void 0,debugName:void 0,debugReferenceFn:e},(i=>{t.clear(),e(i,t)}));return(0,s.OF)((()=>{i.dispose(),t.dispose()}))}class g{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n){var o,r;this._debugNameData=e,this._runFn=t,this.createChangeSummary=i,this._handleChange=n,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=null===(o=this.createChangeSummary)||void 0===o?void 0:o.call(this),null===(r=(0,l.jl)())||void 0===r||r.handleAutorunCreated(this),this._runIfNeeded(),(0,s.wi)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,s.Nq)(this)}_runIfNeeded(){var e,t,i;if(3===this.state)return;const n=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=n,this.state=3;const o=this.disposed;try{if(!o){null===(e=(0,l.jl)())||void 0===e||e.handleAutorunTriggered(this);const i=this.changeSummary;this.changeSummary=null===(t=this.createChangeSummary)||void 0===t?void 0:t.call(this),this._runFn(this,i)}}finally{o||null===(i=(0,l.jl)())||void 0===i||i.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,r.eZ)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary);i&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}(function(e){e.Observer=g})(c||(c={}));var p=i(67491);function f(e,t,i){return new Promise(((n,o)=>{let r=!0,s=!1;const a=e.map((e=>({isFinished:t(e),error:!!i&&i(e),state:e}))),l=c((e=>{const{isFinished:t,error:i,state:c}=a.read(e);(t||i)&&(r?s=!0:l.dispose(),i?o(!0===i?c:i):n(c))}));r=!1,s&&l.dispose()}))}const m=!1;m&&(0,l.EK)(new l.Qy)},2133:(e,t,i)=>{"use strict";i.d(t,{Bl:()=>f,DN:()=>w,Hr:()=>m,Jn:()=>d,MK:()=>c,Nc:()=>h,PS:()=>p,c8:()=>v,hm:()=>g,mT:()=>u,uh:()=>b});var n=i(23204),o=i(61678);let r,s,a,l;function c(e){r=e}function d(e){s=e}function u(e){a=e}class h{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const i=void 0===t?void 0:e,o=void 0===t?e:t;return a({owner:i,debugName:()=>{const e=(0,n.$P)(o);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/,r=t.exec(o.toString());return r?`${this.debugName}.${r[2]}`:i?void 0:`${this.debugName} (mapped)`}},(e=>o(this.read(e),e)))}recomputeInitiallyAndOnChange(e,t){return e.add(r(this,t)),this}}class g extends h{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){const t=this.observers.delete(e);t&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function p(e,t){const i=new _(e,t);try{e(i)}finally{i.finish()}}function f(e){if(l)e(l);else{const t=new _(e,void 0);l=t;try{e(t)}finally{t.finish(),l=void 0}}}async function m(e,t){const i=new _(e,t);try{await e(i)}finally{i.finish()}}function v(e,t,i){e?t(e):p(t,i)}class _{constructor(e,t){var i;this._fn=e,this._getDebugName=t,this.updatingObservers=[],null===(i=(0,o.jl)())||void 0===i||i.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,n.$P)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){var e;const t=this.updatingObservers;for(let i=0;i{}),(()=>`Setting ${this.debugName}`)));try{const r=this._value;this._setValue(e),null===(n=(0,o.jl)())||void 0===n||n.handleObservableChanged(this,{oldValue:r,newValue:e,change:i,didChange:!0,hadValue:!0});for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{r&&r.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function w(e,t){return"string"===typeof e?new C(void 0,e,t):new C(e,void 0,t)}class C extends y{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){var e;null===(e=this._value)||void 0===e||e.dispose()}}},23204:(e,t,i)=>{"use strict";i.d(t,{$P:()=>g,IZ:()=>n});class n{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return s(e,this)}}const o=new Map,r=new WeakMap;function s(e,t){var i;const n=r.get(e);if(n)return n;const s=a(e,t);if(s){let t=null!==(i=o.get(s))&&void 0!==i?i:0;t++,o.set(s,t);const n=1===t?s:`${s}#${t}`;return r.set(e,n),n}}function a(e,t){const i=r.get(e);if(i)return i;const n=t.owner?u(t.owner)+".":"";let o;const s=t.debugNameSource;if(void 0!==s){if("function"!==typeof s)return n+s;if(o=s(),void 0!==o)return n+o}const a=t.referenceFn;if(void 0!==a&&(o=g(a),void 0!==o))return n+o;if(void 0!==t.owner){const i=l(t.owner,e);if(void 0!==i)return n+i}}function l(e,t){for(const i in e)if(e[i]===t)return i}const c=new Map,d=new WeakMap;function u(e){var t;const i=d.get(e);if(i)return i;const n=h(e);let o=null!==(t=c.get(n))&&void 0!==t?t:0;o++,c.set(n,o);const r=1===o?n:`${n}#${o}`;return d.set(e,r),r}function h(e){const t=e.constructor;return t?t.name:"Object"}function g(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//,n=i.exec(t),o=n?n[1]:void 0;return null===o||void 0===o?void 0:o.trim()}},82064:(e,t,i)=>{"use strict";i.d(t,{Be:()=>h,aK:()=>u,bk:()=>d,kA:()=>g,nK:()=>c});var n=i(65662),o=i(70959),r=i(2133),s=i(23204),a=i(61678);const l=(e,t)=>e===t;function c(e,t){return void 0!==t?new p(new s.IZ(e,void 0,t),t,void 0,void 0,void 0,l):new p(new s.IZ(void 0,void 0,e),e,void 0,void 0,void 0,l)}function d(e,t){var i;return new p(new s.IZ(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,null!==(i=e.equalityComparer)&&void 0!==i?i:l)}function u(e,t){var i;return new p(new s.IZ(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,null!==(i=e.equalityComparer)&&void 0!==i?i:l)}function h(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);const r=new o.SL;return new p(new s.IZ(n,void 0,i),(e=>(r.clear(),i(e,r))),void 0,void 0,(()=>r.dispose()),l)}function g(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);const r=new o.SL;return new p(new s.IZ(n,void 0,i),(e=>{r.clear();const t=i(e);return t&&r.add(t),t}),void 0,void 0,(()=>r.dispose()),l)}(0,r.mT)(d);class p extends r.hm{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n,o=void 0,r){var s,l;super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=n,this._handleLastObserverRemoved=o,this._equalityComparator=r,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=null===(s=this.createChangeSummary)||void 0===s?void 0:s.call(this),null===(l=(0,a.jl)())||void 0===l||l.handleDerivedCreated(this)}onLastObserverRemoved(){var e;this.state=0,this.value=void 0;for(const t of this.dependencies)t.removeObserver(this);this.dependencies.clear(),null===(e=this._handleLastObserverRemoved)||void 0===e||e.call(this)}get(){var e;if(0===this.observers.size){const t=this._computeFn(this,null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this));return this.onLastObserverRemoved(),t}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){var e,t;if(3===this.state)return;const i=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=i;const n=0!==this.state,o=this.value;this.state=3;const r=this.changeSummary;this.changeSummary=null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this);try{this.value=this._computeFn(this,r)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const s=n&&!this._equalityComparator(o,this.value);if(null===(t=(0,a.jl)())||void 0===t||t.handleDerivedRecomputed(this,{oldValue:o,newValue:this.value,change:void 0,didChange:s,hadValue:n}),s)for(const a of this.observers)a.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const i of this.observers)i.handlePossibleChange(this);if(t)for(const i of this.observers)i.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,n.eZ)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),n=3===this.state;if(i&&(1===this.state||n)&&(this.state=2,n))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}},61678:(e,t,i)=>{"use strict";let n;function o(e){n=e}function r(){return n}i.d(t,{EK:()=>o,Qy:()=>s,jl:()=>r});class s{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return a([l(p("| ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[l(" "),d(u(e.oldValue,70),{color:"red",strikeThrough:!0}),l(" "),d(u(e.newValue,60),{color:"green"})]:[l(" (unchanged)")]:[l(" "),d(u(e.newValue,60),{color:"green"}),l(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([c("observable value changed"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return d(" (changed deps: "+[...e].map((e=>e.debugName)).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleDerivedRecomputed(e,t){const i=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("derived recomputed"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(i),{data:[{fn:e._computeFn}]}])),i.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([c("observable from event triggered"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleAutorunTriggered(e){const t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([c("autorun"),d(e.debugName,{color:"BlueViolet"}),this.formatChanges(t),{data:[{fn:e._runFn}]}])),t.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let t=e.getDebugName();void 0===t&&(t=""),console.log(...this.textToConsoleArgs([c("transaction"),d(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){const t=new Array,i=[];let n="";function o(e){if("length"in e)for(const t of e)t&&o(t);else"text"in e?(n+=`%c${e.text}`,t.push(e.style),e.data&&i.push(...e.data)):"data"in e&&i.push(...e.data)}o(e);const r=[n,...t];return r.push(...i),r}function l(e){return d(e,{color:"black"})}function c(e){return d(f(`${e}: `,10),{color:"black",bold:!0})}function d(e,t={color:"black"}){function i(e){return Object.entries(e).reduce(((e,[t,i])=>`${e}${t}:${i};`),"")}const n={color:t.color};return t.strikeThrough&&(n["text-decoration"]="line-through"),t.bold&&(n["font-weight"]="bold"),{text:e,style:i(n)}}function u(e,t){switch(typeof e){case"number":return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?h(e,t):g(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`;default:return""+e}}function h(e,t){let i="[ ",n=!0;for(const o of e){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${u(o,t-i.length)}`}return i+=" ]",i}function g(e,t){let i="{ ",n=!0;for(const[o,r]of Object.entries(e)){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${o}: ${u(r,t-i.length)}`}return i+=" }",i}function p(e,t){let i="";for(let n=1;n<=t;n++)i+=e;return i}function f(e,t){while(e.length{"use strict";i.d(t,{DN:()=>v,Dz:()=>l,GN:()=>p,Zg:()=>y,aq:()=>h,bx:()=>b,rD:()=>d});var n=i(70959),o=i(2133),r=i(23204),s=i(82064),a=i(61678);function l(e){return new c(e)}class c extends o.Nc{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function d(e,t){return new u(e,t)}class u extends o.hm{constructor(e,t){super(),this.event=e,this._getValue=t,this.hasValue=!1,this.handleEvent=e=>{var t;const i=this._getValue(e),n=this.value,r=!this.hasValue||n!==i;let s=!1;r&&(this.value=i,this.hasValue&&(s=!0,(0,o.c8)(u.globalTransaction,(e=>{var t;null===(t=(0,a.jl)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:n,newValue:i,change:void 0,didChange:r,hadValue:this.hasValue});for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),s||null===(t=(0,a.jl)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:n,newValue:i,change:void 0,didChange:r,hadValue:this.hasValue})}}getDebugName(){return(0,r.$P)(this._getValue)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this._getValue(void 0)}}function h(e,t){return new g(e,t)}(function(e){function t(e,t){let i=!1;void 0===u.globalTransaction&&(u.globalTransaction=e,i=!0);try{t()}finally{i&&(u.globalTransaction=void 0)}}e.Observer=u,e.batchEventsGlobally=t})(d||(d={}));class g extends o.hm{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,o.PS)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function p(e){return"string"===typeof e?new f(e):new f(void 0,e)}class f extends o.hm{get debugName(){var e;return null!==(e=new r.IZ(this._owner,this._debugName,void 0).getDebugName(this))&&void 0!==e?e:"Observable Signal"}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(e)for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t);else(0,o.PS)((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}function m(e){const t=new _(!1,void 0);return e.addObserver(t),(0,n.OF)((()=>{e.removeObserver(t)}))}function v(e,t){const i=new _(!0,t);return e.addObserver(i),t?t(e.get()):e.reportChanges(),(0,n.OF)((()=>{e.removeObserver(i)}))}(0,o.Jn)(m),(0,o.MK)(v);class _{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function b(e){let t;const i=(0,s.nK)((i=>(t=e(i,t),t)));return i}function y(e,t,i,n){let o=new w(i,n);const r=(0,s.bk)({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{o.dispose(),o=new w(i)}},(e=>(o.setItems(t.read(e)),o.getItems())));return r}class w{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach((e=>e.store.dispose())),this._cache.clear()}setItems(e){const t=[],i=new Set(this._cache.keys());for(const o of e){const e=this._keySelector?this._keySelector(o):o;let r=this._cache.get(e);if(r)i.delete(e);else{const t=new n.SL,i=this._map(o,t);r={out:i,store:t},this._cache.set(e,r)}t.push(r.out)}for(const n of i){const e=this._cache.get(n);e.store.dispose(),this._cache.delete(n)}this._items=t}getItems(){return this._items}}},19912:(e,t,i)=>{"use strict";i.d(t,{DB:()=>L,DZ:()=>T,EZ:()=>D,Fv:()=>k,Gf:()=>E,KR:()=>x,Ku:()=>C,XX:()=>N,ir:()=>I});var n=i(93962);const o=65,r=97,s=90,a=122,l=46,c=47,d=92,u=58,h=63;class g extends Error{constructor(e,t,i){let n;"string"===typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";const o=-1!==e.indexOf(".")?"property":"argument";let r=`The "${e}" ${o} ${n} of type ${t}`;r+=". Received type "+typeof i,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function p(e,t){if(null===e||"object"!==typeof e)throw new g(t,"Object",e)}function f(e,t){if("string"!==typeof e)throw new g(t,"string",e)}const m="win32"===n.Jv;function v(e){return e===c||e===d}function _(e){return e===c}function b(e){return e>=o&&e<=s||e>=r&&e<=a}function y(e,t,i,n){let o="",r=0,s=-1,a=0,d=0;for(let u=0;u<=e.length;++u){if(u2){const e=o.lastIndexOf(i);-1===e?(o="",r=0):(o=o.slice(0,e),r=o.length-1-o.lastIndexOf(i)),s=u,a=0;continue}if(0!==o.length){o="",r=0,s=u,a=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",r=2)}else o.length>0?o+=`${i}${e.slice(s+1,u)}`:o=e.slice(s+1,u),r=u-s-1;s=u,a=0}else d===l&&-1!==a?++a:a=-1}return o}function w(e,t){p(t,"pathObject");const i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}const C={resolve(...e){let t="",i="",o=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(s=e[r],f(s,"path"),0===s.length)continue}else 0===t.length?s=n.Vj():(s=n.OB[`=${t}`]||n.Vj(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===d)&&(s=`${t}\\`));const a=s.length;let l=0,c="",h=!1;const g=s.charCodeAt(0);if(1===a)v(g)&&(l=1,h=!0);else if(v(g))if(h=!0,v(s.charCodeAt(1))){let e=2,t=e;while(e2&&v(s.charCodeAt(2))&&(h=!0,l=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(o){if(t.length>0)break}else if(i=`${s.slice(l)}\\${i}`,o=h,h&&t.length>0)break}return i=y(i,!o,"\\",v),o?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){f(e,"path");const t=e.length;if(0===t)return".";let i,n=0,o=!1;const r=e.charCodeAt(0);if(1===t)return _(r)?"\\":e;if(v(r))if(o=!0,v(e.charCodeAt(1))){let o=2,r=o;while(o2&&v(e.charCodeAt(2))&&(o=!0,n=3));let s=n0&&v(e.charCodeAt(t-1))&&(s+="\\"),void 0===i?o?`\\${s}`:s:o?`${i}\\${s}`:`${i}${s}`},isAbsolute(e){f(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return v(i)||t>2&&b(i)&&e.charCodeAt(1)===u&&v(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let r=0;r0&&(void 0===t?t=i=n:t+=`\\${n}`)}if(void 0===t)return".";let n=!0,o=0;if("string"===typeof i&&v(i.charCodeAt(0))){++o;const e=i.length;e>1&&v(i.charCodeAt(1))&&(++o,e>2&&(v(i.charCodeAt(2))?++o:n=!1))}if(n){while(o=2&&(t=`\\${t.slice(o)}`)}return C.normalize(t)},relative(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";const i=C.resolve(e),n=C.resolve(t);if(i===n)return"";if(e=i.toLowerCase(),t=n.toLowerCase(),e===t)return"";let o=0;while(oo&&e.charCodeAt(r-1)===d)r--;const s=r-o;let a=0;while(aa&&t.charCodeAt(l-1)===d)l--;const c=l-a,u=su){if(t.charCodeAt(a+g)===d)return n.slice(a+g+1);if(2===g)return n.slice(a+g)}s>u&&(e.charCodeAt(o+g)===d?h=g:2===g&&(h=3)),-1===h&&(h=0)}let p="";for(g=o+h+1;g<=r;++g)g!==r&&e.charCodeAt(g)!==d||(p+=0===p.length?"..":"\\..");return a+=h,p.length>0?`${p}${n.slice(a,l)}`:(n.charCodeAt(a)===d&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=C.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===d){if(t.charCodeAt(1)===d){const e=t.charCodeAt(2);if(e!==h&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(b(t.charCodeAt(0))&&t.charCodeAt(1)===u&&t.charCodeAt(2)===d)return`\\\\?\\${t}`;return e},dirname(e){f(e,"path");const t=e.length;if(0===t)return".";let i=-1,n=0;const o=e.charCodeAt(0);if(1===t)return v(o)?e:".";if(v(o)){if(i=n=1,v(e.charCodeAt(1))){let o=2,r=o;while(o2&&v(e.charCodeAt(2))?3:2,n=i);let r=-1,s=!0;for(let a=t-1;a>=n;--a)if(v(e.charCodeAt(a))){if(!s){r=a;break}}else s=!1;if(-1===r){if(-1===i)return".";r=i}return e.slice(0,r)},basename(e,t){void 0!==t&&f(t,"ext"),f(e,"path");let i,n=0,o=-1,r=!0;if(e.length>=2&&b(e.charCodeAt(0))&&e.charCodeAt(1)===u&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){const l=e.charCodeAt(i);if(v(l)){if(!r){n=i+1;break}}else-1===a&&(r=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1===--s&&(o=i):(s=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=n;--i)if(v(e.charCodeAt(i))){if(!r){n=i+1;break}}else-1===o&&(r=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){f(e,"path");let t=0,i=-1,n=0,o=-1,r=!0,s=0;e.length>=2&&e.charCodeAt(1)===u&&b(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(v(t)){if(!r){n=a+1;break}}else-1===o&&(r=!1,o=a+1),t===l?-1===i?i=a:1!==s&&(s=1):-1!==i&&(s=-1)}return-1===i||-1===o||0===s||1===s&&i===o-1&&i===n+1?"":e.slice(i,o)},format:w.bind(null,"\\"),parse(e){f(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let n=0,o=e.charCodeAt(0);if(1===i)return v(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(v(o)){if(n=1,v(e.charCodeAt(1))){let t=2,o=t;while(t0&&(t.root=e.slice(0,n));let r=-1,s=n,a=-1,c=!0,d=e.length-1,h=0;for(;d>=n;--d)if(o=e.charCodeAt(d),v(o)){if(!c){s=d+1;break}}else-1===a&&(c=!1,a=d+1),o===l?-1===r?r=d:1!==h&&(h=1):-1!==r&&(h=-1);return-1!==a&&(-1===r||0===h||1===h&&r===a-1&&r===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,r),t.base=e.slice(s,a),t.ext=e.slice(r,a))),t.dir=s>0&&s!==n?e.slice(0,s-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},S=(()=>{if(m){const e=/\\/g;return()=>{const t=n.Vj().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>n.Vj()})(),x={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){const o=n>=0?e[n]:S();f(o,"path"),0!==o.length&&(t=`${o}/${t}`,i=o.charCodeAt(0)===c)}return t=y(t,!i,"/",_),i?`/${t}`:t.length>0?t:"."},normalize(e){if(f(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,i=e.charCodeAt(e.length-1)===c;return e=y(e,!t,"/",_),0===e.length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return f(e,"path"),e.length>0&&e.charCodeAt(0)===c},join(...e){if(0===e.length)return".";let t;for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":x.normalize(t)},relative(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";if(e=x.resolve(e),t=x.resolve(t),e===t)return"";const i=1,n=e.length,o=n-i,r=1,s=t.length-r,a=oa){if(t.charCodeAt(r+d)===c)return t.slice(r+d+1);if(0===d)return t.slice(r+d)}else o>a&&(e.charCodeAt(i+d)===c?l=d:0===d&&(l=0));let u="";for(d=i+l+1;d<=n;++d)d!==n&&e.charCodeAt(d)!==c||(u+=0===u.length?"..":"/..");return`${u}${t.slice(r+l)}`},toNamespacedPath(e){return e},dirname(e){if(f(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let i=-1,n=!0;for(let o=e.length-1;o>=1;--o)if(e.charCodeAt(o)===c){if(!n){i=o;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&f(t,"ext"),f(e,"path");let i,n=0,o=-1,r=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===c){if(!r){n=i+1;break}}else-1===a&&(r=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1===--s&&(o=i):(s=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===c){if(!r){n=i+1;break}}else-1===o&&(r=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){f(e,"path");let t=-1,i=0,n=-1,o=!0,r=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a!==c)-1===n&&(o=!1,n=s+1),a===l?-1===t?t=s:1!==r&&(r=1):-1!==t&&(r=-1);else if(!o){i=s+1;break}}return-1===t||-1===n||0===r||1===r&&t===n-1&&t===i+1?"":e.slice(t,n)},format:w.bind(null,"/"),parse(e){f(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===c;let n;i?(t.root="/",n=1):n=0;let o=-1,r=0,s=-1,a=!0,d=e.length-1,u=0;for(;d>=n;--d){const t=e.charCodeAt(d);if(t!==c)-1===s&&(a=!1,s=d+1),t===l?-1===o?o=d:1!==u&&(u=1):-1!==o&&(u=-1);else if(!a){r=d+1;break}}if(-1!==s){const n=0===r&&i?1:r;-1===o||0===u||1===u&&o===s-1&&o===r+1?t.base=t.name=e.slice(n,s):(t.name=e.slice(n,o),t.base=e.slice(n,s),t.ext=e.slice(o,s))}return r>0?t.dir=e.slice(0,r-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};x.win32=C.win32=C,x.posix=C.posix=x;const k=m?C.normalize:x.normalize,L=m?C.resolve:x.resolve,E=m?C.relative:x.relative,N=m?C.dirname:x.dirname,D=m?C.basename:x.basename,T=m?C.extname:x.extname,I=m?C.sep:x.sep},47606:(e,t,i)=>{"use strict";i.d(t,{$L:()=>T,Dt:()=>K,ED:()=>L,G6:()=>$,IJ:()=>N,OS:()=>H,dK:()=>M,dz:()=>E,fn:()=>B,gn:()=>A,i7:()=>z,qB:()=>R,r:()=>j,tY:()=>D,tq:()=>O,un:()=>q,vU:()=>U});var n,o=i(25206);const r="en";let s,a,l=!1,c=!1,d=!1,u=!1,h=!1,g=!1,p=!1,f=!1,m=!1,v=!1,_=r,b=null,y=null;const w=globalThis;let C;"undefined"!==typeof w.vscode&&"undefined"!==typeof w.vscode.process?C=w.vscode.process:"undefined"!==typeof process&&(C=process);const S="string"===typeof(null===(n=null===C||void 0===C?void 0:C.versions)||void 0===n?void 0:n.electron),x=S&&"renderer"===(null===C||void 0===C?void 0:C.type);if("object"===typeof C){l="win32"===C.platform,c="darwin"===C.platform,d="linux"===C.platform,u=d&&!!C.env["SNAP"]&&!!C.env["SNAP_REVISION"],p=S,m=!!C.env["CI"]||!!C.env["BUILD_ARTIFACTSTAGINGDIRECTORY"],s=r,_=r;const e=C.env["VSCODE_NLS_CONFIG"];if(e)try{const t=JSON.parse(e),i=t.availableLanguages["*"];s=t.locale,b=t.osLocale,_=i||r,y=t._translationsConfigFile}catch(G){}h=!0}else if("object"!==typeof navigator||x)console.error("Unable to resolve platform.");else{a=navigator.userAgent,l=a.indexOf("Windows")>=0,c=a.indexOf("Macintosh")>=0,f=(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,d=a.indexOf("Linux")>=0,v=(null===a||void 0===a?void 0:a.indexOf("Mobi"))>=0,g=!0;const e=o.aj(o.NC({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"));s=e||r,_=s,b=navigator.language}let k=0;c?k=1:l?k=3:d&&(k=2);const L=l,E=c,N=d,D=h,T=g,I=g&&"function"===typeof w.importScripts,R=I?w.origin:void 0,A=f,O=v,P=a,M=_,F="function"===typeof w.postMessage&&!w.importScripts,B=(()=>{if(F){const e=[];w.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i{const n=++t;e.push({id:n,callback:i}),w.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),H=c||f?2:l?1:3;let W=!0,V=!1;function j(){if(!V){V=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);W=513===t[0]}return W}const z=!!(P&&P.indexOf("Chrome")>=0),U=!!(P&&P.indexOf("Firefox")>=0),$=!!(!z&&P&&P.indexOf("Safari")>=0),q=!!(P&&P.indexOf("Edg/")>=0),K=!!(P&&P.indexOf("Android")>=0)},93962:(e,t,i)=>{"use strict";i.d(t,{Jv:()=>l,OB:()=>a,Vj:()=>s});var n=i(47606);let o;const r=globalThis.vscode;if("undefined"!==typeof r&&"undefined"!==typeof r.process){const e=r.process;o={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else o="undefined"!==typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env["VSCODE_CWD"]||process.cwd()}}:{get platform(){return n.ED?"win32":n.dz?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const s=o.cwd,a=o.env,l=o.platform},68801:(e,t,i)=>{"use strict";var n;i.d(t,{e:()=>n}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function i(e){return e.end-e.start<=0}function n(e,n){return!i(t(e,n))}function o(e,t){const n=[],o={start:e.start,end:Math.min(t.start,e.end)},r={start:Math.max(t.end,e.start),end:e.end};return i(o)||n.push(o),i(r)||n.push(r),n}e.intersect=t,e.isEmpty=i,e.intersects=n,e.relativeComplement=o}(n||(n={}))},21230:(e,t,i)=>{"use strict";i.d(t,{AH:()=>_,DZ:()=>f,EZ:()=>p,Hx:()=>g,SF:()=>u,Vb:()=>S,Vo:()=>v,XX:()=>m,Xy:()=>h,i3:()=>y,lX:()=>b,z_:()=>c});var n=i(1535),o=i(50200),r=i(19912),s=i(47606),a=i(61720),l=i(95896);function c(e){return(0,l.q)(e,!0)}class d{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,a.qu)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===o.lg.file)return n.KM(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(w(e.authority,t.authority))return n.KM(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.o.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return r.KR.basename(e.path)}extname(e){return r.KR.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===o.lg.file?t=l.o.file(r.XX(c(e))).path:(t=r.KR.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===o.lg.file?l.o.file(r.Fv(c(e))).path:r.KR.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!w(e.authority,t.authority))return;if(e.scheme===o.lg.file){const i=r.Gf(c(e),c(t));return s.ED?n.ej(i):i}let i=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,a.length);en.yj(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=r.ir){return C(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=r.ir){let i=!1;if(e.scheme===o.lg.file){const o=c(e);i=void 0!==o&&o.length===n.yj(o).length&&o[o.length-1]===t}else{t="/";const n=e.path;i=1===n.length&&47===n.charCodeAt(n.length-1)}return i||C(e,t)?e:e.with({path:e.path+"/"})}}const u=new d((()=>!1)),h=(new d((e=>e.scheme!==o.lg.file||!s.IJ)),new d((e=>!0)),u.isEqual.bind(u)),g=(u.isEqualOrParent.bind(u),u.getComparisonKey.bind(u),u.basenameOrAuthority.bind(u)),p=u.basename.bind(u),f=u.extname.bind(u),m=u.dirname.bind(u),v=u.joinPath.bind(u),_=u.normalizePath.bind(u),b=u.relativePath.bind(u),y=u.resolvePath.bind(u),w=(u.isAbsolutePath.bind(u),u.isEqualAuthority.bind(u)),C=u.hasTrailingPathSeparator.bind(u);u.removeTrailingPathSeparator.bind(u),u.addTrailingPathSeparator.bind(u);var S;(function(e){function t(t){const i=new Map,n=t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";"));n.split(";").forEach((e=>{const[t,n]=e.split(":");t&&n&&i.set(t,n)}));const o=t.path.substring(0,t.path.indexOf(";"));return o&&i.set(e.META_DATA_MIME,o),i}e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=t})(S||(S={}))},4225:(e,t,i)=>{"use strict";i.d(t,{Rm:()=>s});var n=i(11271),o=i(70959);class r{constructor(e,t,i,n,o,r,s){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,n|=0,o|=0,r|=0,s|=0),this.rawScrollLeft=n,this.rawScrollTop=s,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),o<0&&(o=0),s+o>r&&(s=r-o),s<0&&(s=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=o,this.scrollHeight=r,this.scrollTop=s}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new r(this._forceIntegerValues,"undefined"!==typeof e.width?e.width:this.width,"undefined"!==typeof e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof e.height?e.height:this.height,"undefined"!==typeof e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new r(this._forceIntegerValues,this.width,this.scrollWidth,"undefined"!==typeof e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,s=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:o,heightChanged:r,scrollHeightChanged:s,scrollTopChanged:a}}}class s extends o.JT{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new n.Q5),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new r(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var i;const n=this._state.withScrollDimensions(e,t);this._setState(n,Boolean(this._smoothScrolling)),null===(i=this._smoothScrolling)||void 0===i||i.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;n=t?new d(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=d.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}hasPendingScrollAnimation(){return Boolean(this._smoothScrolling)}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function l(e,t){const i=t-e;return function(t){return e+i*h(t)}}function c(e,t,i){return function(n){return n2.5*i){let n,o;return e{"use strict";i.d(t,{Z:()=>r});var n,o=i(61720);(function(e){e[e["Ignore"]=0]="Ignore",e[e["Info"]=1]="Info",e[e["Warning"]=2]="Warning",e[e["Error"]=3]="Error"})(n||(n={})),function(e){const t="error",i="warning",n="warn",r="info",s="ignore";function a(s){return s?o.qq(t,s)?e.Error:o.qq(i,s)||o.qq(n,s)?e.Warning:o.qq(r,s)?e.Info:e.Ignore:e.Ignore}function l(n){switch(n){case e.Error:return t;case e.Warning:return i;case e.Info:return r;default:return s}}e.fromValue=a,e.toString=l}(n||(n={}));const r=n},96729:(e,t,i)=>{"use strict";i.d(t,{G:()=>o});const n=globalThis.performance&&"function"===typeof globalThis.performance.now;class o{static create(e){return new o(e)}constructor(e){this._now=n&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},61720:(e,t,i)=>{"use strict";i.d(t,{$i:()=>Z,B4:()=>de,C8:()=>X,Fw:()=>y,GF:()=>v,HO:()=>z,IO:()=>_,J_:()=>U,K7:()=>J,Kw:()=>ie,LC:()=>w,Mh:()=>A,P1:()=>O,PJ:()=>ne,Qe:()=>Q,R1:()=>m,T5:()=>N,TT:()=>k,Ut:()=>K,V8:()=>C,W1:()=>V,WU:()=>l,YK:()=>M,YU:()=>d,ZG:()=>P,ZH:()=>B,ZK:()=>ue,ab:()=>Y,c1:()=>ee,df:()=>T,ec:()=>u,fA:()=>c,fy:()=>h,j3:()=>g,j_:()=>E,m5:()=>s,mK:()=>D,oH:()=>ae,oL:()=>p,ok:()=>R,ow:()=>S,qq:()=>I,qu:()=>x,rL:()=>F,uS:()=>te,un:()=>f,uq:()=>b,vH:()=>j,vU:()=>he,zY:()=>L});var n,o=i(60857),r=i(21815);function s(e){return!e||"string"!==typeof e||0===e.trim().length}const a=/{(\d+)}/g;function l(e,...t){return 0===t.length?e:e.replace(a,(function(e,i){const n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]}))}function c(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function d(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function u(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function h(e,t=" "){const i=g(e,t);return p(i,t)}function g(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let n=0;while(e.indexOf(t,n)===n)n+=i;return e.substring(n)}function p(e,t){if(!e||!t)return e;const i=t.length,n=e.length;if(0===i||0===n)return e;let o=n,r=-1;while(1){if(r=e.lastIndexOf(t,o-1),-1===r||r+i!==o)break;if(0===r)return"";o=r}return e.substring(0,o)}function f(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function m(e){return e.replace(/\*/g,"")}function v(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=u(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function _(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;const t=e.exec("");return!(!t||0!==e.lastIndex)}function b(e){return e.split(/\r\n|\r|\n/)}function y(e){var t;const i=[],n=e.split(/(\r\n|\r|\n)/);for(let o=0;o=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function x(e,t){return et?1:0}function k(e,t,i=0,n=e.length,o=0,r=t.length){for(;ir)return 1}const s=n-i,a=r-o;return sa?1:0}function L(e,t){return E(e,t,0,e.length,0,t.length)}function E(e,t,i=0,n=e.length,o=0,r=t.length){for(;i=128||a>=128)return k(e.toLowerCase(),t.toLowerCase(),i,n,o,r);D(s)&&(s-=32),D(a)&&(a-=32);const l=s-a;if(0!==l)return l}const s=n-i,a=r-o;return sa?1:0}function N(e){return e>=48&&e<=57}function D(e){return e>=97&&e<=122}function T(e){return e>=65&&e<=90}function I(e,t){return e.length===t.length&&0===E(e,t)}function R(e,t){const i=t.length;return!(t.length>e.length)&&0===E(e,t,0,i)}function A(e,t){const i=Math.min(e.length,t.length);let n;for(n=0;n1){const n=e.charCodeAt(t-2);if(P(n))return F(n,i)}return i}class W{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=H(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=B(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class V{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new W(e,t)}nextGraphemeLength(){const e=re.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.nextCodePoint());while(!t.eol()){const i=t.offset,o=e.getGraphemeBreakType(t.nextCodePoint());if(oe(n,o)){t.setOffset(i);break}n=o}return t.offset-i}prevGraphemeLength(){const e=re.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.prevCodePoint());while(t.offset>0){const i=t.offset,o=e.getGraphemeBreakType(t.prevCodePoint());if(oe(o,n)){t.setOffset(i);break}n=o}return i-t.offset}eol(){return this._iterator.eol()}}function j(e,t){const i=new V(e,t);return i.nextGraphemeLength()}function z(e,t){const i=new V(e,t);return i.prevGraphemeLength()}function U(e,t){t>0&&M(e.charCodeAt(t))&&t--;const i=t+j(e,t),n=i-z(e,i);return[n,i]}let $;function q(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function K(e){return $||($=q()),$.test(e)}const G=/^[\t\n\r\x20-\x7E]*$/;function Z(e){return G.test(e)}const Q=/[\u2028\u2029]/;function Y(e){return Q.test(e)}function J(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function X(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const ee=String.fromCharCode(65279);function te(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function ie(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function ne(e){const t=26;return e%=2*t,et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}function se(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function ae(e,t){if(0===e)return 0;const i=le(e,t);if(void 0!==i)return i;const n=new W(t,e);return n.prevCodePoint(),n.offset}function le(e,t){const i=new W(t,e);let n=i.prevCodePoint();while(ce(n)||65039===n||8419===n){if(0===i.offset)return;n=i.prevCodePoint()}if(!X(n))return;let o=i.offset;if(o>0){const e=i.prevCodePoint();8205===e&&(o=i.offset)}return o}function ce(e){return 127995<=e&&e<=127999}re._INSTANCE=null;const de=" ";class ue{static getInstance(e){return n.cache.get(Array.from(e))}static getLocales(){return n._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}n=ue,ue.ambiguousCharacterData=new r.o((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),ue.cache=new o.t((e=>{function t(e){const t=new Map;for(let i=0;i!e.startsWith("_")&&e in r));0===a.length&&(a=["_default"]);for(const n of a){const e=t(r[n]);s=o(s,e)}const l=t(r["_common"]),c=i(l,s);return new n(c)})),ue._locales=new r.o((()=>Object.keys(n.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class he{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(he.getRawData())),this._data}static isInvisibleCharacter(e){return he.getData().has(e)}static get codePoints(){return he.getData()}}he._data=void 0},65338:(e,t,i)=>{"use strict";i.d(t,{n:()=>n});const n=Symbol("MicrotaskDelay")},17141:(e,t,i)=>{"use strict";i.d(t,{Id:()=>c});var n=i(61720);class o{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to!1),t=(()=>!1)){return new c(new a(e,t))}static forStrings(){return new c(new o)}static forConfigKeys(){return new c(new r)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new l,this._root.segment=i.value());const o=[];n=this._root;while(1){const e=i.cmp(n.segment);if(e>0)n.left||(n.left=new l,n.left.segment=i.value()),o.push([-1,n]),n=n.left;else if(e<0)n.right||(n.right=new l,n.right.segment=i.value()),o.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new l,n.mid.segment=i.value()),o.push([0,n]),n=n.mid}}const r=n.value;n.value=t,n.key=e;for(let s=o.length-1;s>=0;s--){const e=o[s][1];e.updateHeight();const t=e.balanceFactor();if(t<-1||t>1){const t=o[s][0],i=o[s+1][0];if(1===t&&1===i)o[s][1]=e.rotateLeft();else if(-1===t&&-1===i)o[s][1]=e.rotateRight();else if(1===t&&-1===i)e.right=o[s+1][1]=o[s+1][1].rotateRight(),o[s][1]=e.rotateLeft();else{if(-1!==t||1!==i)throw new Error;e.left=o[s+1][1]=o[s+1][1].rotateLeft(),o[s][1]=e.rotateRight()}if(s>0)switch(o[s-1][0]){case-1:o[s-1][1].left=o[s][1];break;case 1:o[s-1][1].right=o[s][1];break;case 0:o[s-1][1].mid=o[s][1];break}else this._root=o[0][1]}}return r}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;while(i){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===(null===t||void 0===t?void 0:t.value)&&void 0===(null===t||void 0===t?void 0:t.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),o=[];let r=this._root;while(r){const e=n.cmp(r.segment);if(e>0)o.push([-1,r]),r=r.left;else if(e<0)o.push([1,r]),r=r.right;else{if(!n.hasNext())break;n.next(),o.push([0,r]),r=r.mid}}if(r){if(t?(r.left=void 0,r.mid=void 0,r.right=void 0,r.height=1):(r.key=void 0,r.value=void 0),!r.mid&&!r.value)if(r.left&&r.right){const e=this._min(r.right);if(e.key){const{key:t,value:i,segment:n}=e;this._delete(e.key,!1),r.key=t,r.value=i,r.segment=n}}else{const e=null!==(i=r.left)&&void 0!==i?i:r.right;if(o.length>0){const[t,i]=o[o.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e;break}}else this._root=e}for(let e=o.length-1;e>=0;e--){const t=o[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),o[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),o[e][1]=t.rotateRight()),e>0)switch(o[e-1][0]){case-1:o[e-1][1].left=o[e][1];break;case 1:o[e-1][1].right=o[e][1];break;case 0:o[e-1][1].mid=o[e][1];break}else this._root=o[0][1]}}}_min(e){while(e.left)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,n=this._root;while(n){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let n=this._root;while(n){const e=i.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!i.hasNext())return n.mid?this._entries(n.mid):t?n.value:void 0;i.next(),n=n.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}},99588:(e,t,i)=>{"use strict";i.d(t,{k:()=>o});var n,o,r=i(8419);(function(e){function t(e){return e&&"object"===typeof e&&"string"===typeof e.id}e.isThemeColor=t})(n||(n={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){const n=t.exec(e.id);if(!n)return i(r.l.error);const[,o,s]=n,a=["codicon","codicon-"+o];return s&&a.push("codicon-modifier-"+s.substring(1)),a}function o(e){return i(e).join(" ")}function s(e){return"."+i(e).join(".")}function a(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||n.isThemeColor(e.color))}e.asClassNameArray=i,e.asClassName=o,e.asCSSSelector=s,e.isThemeIcon=a;const l=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);function c(e){const t=l.exec(e);if(!t)return;const[,i]=t;return{id:i}}function d(e){return{id:e}}function u(e,t){let i=e.id;const n=i.lastIndexOf("~");return-1!==n&&(i=i.substring(0,n)),t&&(i=`${i}~${t}`),{id:i}}function h(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)}function g(e,t){var i,n;return e.id===t.id&&(null===(i=e.color)||void 0===i?void 0:i.id)===(null===(n=t.color)||void 0===n?void 0:n.id)}e.fromString=c,e.fromId=d,e.modify=u,e.getModifier=h,e.isEqual=g}(o||(o={}))},55455:(e,t,i)=>{"use strict";function n(e){return"string"===typeof e}function o(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function r(e){const t=Object.getPrototypeOf(Uint8Array);return"object"===typeof e&&e instanceof t}function s(e){return"number"===typeof e&&!isNaN(e)}function a(e){return!!e&&"function"===typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function c(e){return"undefined"===typeof e}function d(e){return!u(e)}function u(e){return c(e)||null===e}function h(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(u(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"===typeof e}function f(e,t){const i=Math.min(e.length,t.length);for(let n=0;nd,D8:()=>f,HD:()=>n,Jp:()=>u,Kn:()=>o,TW:()=>a,cW:()=>g,fU:()=>r,hj:()=>s,jn:()=>l,mf:()=>p,o8:()=>c,p_:()=>h})},47396:(e,t,i)=>{"use strict";function n(e){return e<0?0:e>255?255:0|e}function o(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{A:()=>o,K:()=>n})},95896:(e,t,i)=>{"use strict";i.d(t,{o:()=>p,q:()=>y});var n=i(19912),o=i(47606);const r=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function l(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!r.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!s.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}function c(e,t){return e||t?e:"file"}function d(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h;break}return t}const u="",h="/",g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{static isUri(e){return e instanceof p||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,i,n,o,r=!1){"object"===typeof e?(this.scheme=e.scheme||u,this.authority=e.authority||u,this.path=e.path||u,this.query=e.query||u,this.fragment=e.fragment||u):(this.scheme=c(e,r),this.authority=t||u,this.path=d(this.scheme,i||u),this.query=n||u,this.fragment=o||u,l(this,r))}get fsPath(){return y(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:r}=e;return void 0===t?t=this.scheme:null===t&&(t=u),void 0===i?i=this.authority:null===i&&(i=u),void 0===n?n=this.path:null===n&&(n=u),void 0===o?o=this.query:null===o&&(o=u),void 0===r?r=this.fragment:null===r&&(r=u),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&r===this.fragment?this:new m(t,i,n,o,r)}static parse(e,t=!1){const i=g.exec(e);return i?new m(i[2]||u,x(i[4]||u),x(i[5]||u),x(i[7]||u),x(i[9]||u),t):new m(u,u,u,u,u)}static file(e){let t=u;if(o.ED&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const i=e.indexOf(h,2);-1===i?(t=e.substring(2),e=h):(t=e.substring(2,i),e=e.substring(i)||h)}return new m("file",t,e,u,u)}static from(e,t){const i=new m(e.scheme,e.authority,e.path,e.query,e.fragment,t);return i}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=o.ED&&"file"===e.scheme?p.file(n.Ku.join(y(e,!0),...t)).path:n.KR.join(e.path,...t),e.with({path:i})}toString(e=!1){return w(this,e)}toJSON(){return this}static revive(e){var t,i;if(e){if(e instanceof p)return e;{const n=new m(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===f&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}return e}}const f=o.ED?1:void 0;class m extends p{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath}toString(e=!1){return e?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const v={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function _(e,t,i){let n,o=-1;for(let r=0;r=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||i&&91===s||i&&93===s||i&&58===s)-1!==o&&(n+=encodeURIComponent(e.substring(o,r)),o=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));const t=v[s];void 0!==t?(-1!==o&&(n+=encodeURIComponent(e.substring(o,r)),o=-1),n+=t):-1===o&&(o=r)}}return-1!==o&&(n+=encodeURIComponent(e.substring(o))),void 0!==n?n:e}function b(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o.ED&&(i=i.replace(/\//g,"\\")),i}function w(e,t){const i=t?b:_;let n="",{scheme:o,authority:r,path:s,query:a,fragment:l}=e;if(o&&(n+=o,n+=":"),(r||"file"===o)&&(n+=h,n+=h),r){let e=r.indexOf("@");if(-1!==e){const t=r.substr(0,e);r=r.substr(e+1),e=t.lastIndexOf(":"),-1===e?n+=i(t,!1,!1):(n+=i(t.substr(0,e),!1,!1),n+=":",n+=i(t.substr(e+1),!1,!0)),n+="@"}r=r.toLowerCase(),e=r.lastIndexOf(":"),-1===e?n+=i(r,!1,!0):(n+=i(r.substr(0,e),!1,!0),n+=r.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}n+=i(s,!0,!1)}return a&&(n+="?",n+=i(a,!1,!1)),l&&(n+="#",n+=t?l:_(l,!1,!1)),n}function C(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}const S=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(e){return e.match(S)?e.replace(S,(e=>C(e))):e}},7091:(e,t,i)=>{"use strict";i.d(t,{R:()=>n});const n=function(){if("object"===typeof crypto&&"function"===typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);let e;e="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t{"use strict";i.d(t,{H:()=>p});var n=i(30630),o=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of s(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=r(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) @@ -609,7 +609,7 @@ var n={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},o={defaultToke * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ -var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},o=["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"],s=e=>e.charAt(0).toUpperCase()+e.substr(1),r=[];o.forEach((e=>{r.push(e),r.push(e.toUpperCase()),r.push(s(e))}));var a={defaultToken:"",tokenPostfix:".apex",keywords:r,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},19006:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>n,language:()=>o}); +var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},o=["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"],r=e=>e.charAt(0).toUpperCase()+e.substr(1),s=[];o.forEach((e=>{s.push(e),s.push(e.toUpperCase()),s.push(r(e))}));var a={defaultToken:"",tokenPostfix:".apex",keywords:s,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},19006:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>n,language:()=>o}); /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) @@ -630,7 +630,7 @@ var n={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],aut * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ -var n=e=>`\\b${e}\\b`,o="[_a-zA-Z]",s="[_a-zA-Z0-9]",r=n(`${o}${s}*`),a=["targetScope","resource","module","param","var","output","for","in","if","existing"],l=["true","false","null"],c="[ \\t\\r\\n]",d="[0-9]+",u={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:":.,=}])' \n\t",indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},h={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=>{"use strict";i.r(t),i.d(t,{conf:()=>n,language:()=>o}); +var n=e=>`\\b${e}\\b`,o="[_a-zA-Z]",r="[_a-zA-Z0-9]",s=n(`${o}${r}*`),a=["targetScope","resource","module","param","var","output","for","in","if","existing"],l=["true","false","null"],c="[ \\t\\r\\n]",d="[0-9]+",u={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:":.,=}])' \n\t",indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},h={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=>{"use strict";i.r(t),i.d(t,{conf:()=>n,language:()=>o}); /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) @@ -721,7 +721,7 @@ var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],surro * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ -var n={comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},o={defaultToken:"",tokenPostfix:".flow",keywords:["import","require","export","forbid","native","if","else","cast","unsafe","switch","default"],types:["io","mutable","bool","int","double","string","flow","void","ref","true","false","with"],operators:["=",">","<","<=",">=","==","!","!=",":=","::=","&&","||","+","-","*","/","@","&","%",":","->","\\","$","??","^"],symbols:/[@$=>](?!@symbols)/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}},2415:(e,t,i)=>{"use strict";i.r(t),i.d(t,{TagAngleInterpolationBracket:()=>x,TagAngleInterpolationDollar:()=>C,TagAutoInterpolationBracket:()=>E,TagAutoInterpolationDollar:()=>L,TagBracketInterpolationBracket:()=>k,TagBracketInterpolationDollar:()=>S});var n=i(30630),o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of r(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; +var n={comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},o={defaultToken:"",tokenPostfix:".flow",keywords:["import","require","export","forbid","native","if","else","cast","unsafe","switch","default"],types:["io","mutable","bool","int","double","string","flow","void","ref","true","false","with"],operators:["=",">","<","<=",">=","==","!","!=",":=","::=","&&","||","+","-","*","/","@","&","%",":","->","\\","$","??","^"],symbols:/[@$=>](?!@symbols)/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}},2415:(e,t,i)=>{"use strict";i.r(t),i.d(t,{TagAngleInterpolationBracket:()=>x,TagAngleInterpolationDollar:()=>C,TagAutoInterpolationBracket:()=>E,TagAutoInterpolationDollar:()=>L,TagBracketInterpolationBracket:()=>k,TagBracketInterpolationDollar:()=>S});var n=i(30630),o=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of s(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=r(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) @@ -748,7 +748,7 @@ var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"], * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ -var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},o={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}},7507:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>h,language:()=>g});var n=i(30630),o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of r(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; +var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},o={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}},7507:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>h,language:()=>g});var n=i(30630),o=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of s(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=r(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) @@ -761,7 +761,7 @@ var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoC * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ -var n={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}}},91138:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>h,language:()=>g});var n=i(30630),o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of r(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; +var n={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}}},91138:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>h,language:()=>g});var n=i(30630),o=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of s(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=r(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) @@ -787,7 +787,7 @@ var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\: * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/(0,n.H)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>i.e(736).then(i.bind(i,10690))})},10690:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>o,language:()=>s});var n=i(66387),o=n.conf,s={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:n.language.operators,symbols:n.language.symbols,escapes:n.language.escapes,digits:n.language.digits,octaldigits:n.language.octaldigits,binarydigits:n.language.binarydigits,hexdigits:n.language.hexdigits,regexpctl:n.language.regexpctl,regexpesc:n.language.regexpesc,tokenizer:n.language.tokenizer}; + *-----------------------------------------------------------------------------*/(0,n.H)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>i.e(736).then(i.bind(i,10690))})},10690:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>o,language:()=>r});var n=i(66387),o=n.conf,r={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:n.language.operators,symbols:n.language.symbols,escapes:n.language.escapes,digits:n.language.digits,octaldigits:n.language.octaldigits,binarydigits:n.language.binarydigits,hexdigits:n.language.hexdigits,regexpctl:n.language.regexpctl,regexpesc:n.language.regexpesc,tokenizer:n.language.tokenizer}; /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) @@ -821,7 +821,7 @@ var n={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{bl * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ -var n={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},o={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}}},46137:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>h,language:()=>g});var n=i(30630),o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of r(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; +var n={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},o={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}}},46137:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>h,language:()=>g});var n=i(30630),o=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of s(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=r(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) @@ -848,7 +848,7 @@ var n={comments:{blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",") * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ -var n={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},o={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)(\-|\w)*/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)(\-|\w)*\s*>/,{token:"tag"}],[//,"comment","@pop"],[//,"comment","@pop"],[//,{token:"comment",next:"@pop"}],[//,{token:"comment",next:"@pop"}],[//,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}},66387:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>u,language:()=>h});var n=i(30630),o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of r(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; +var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],["\x3c!--","--\x3e"],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},o={defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}},66387:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>u,language:()=>h});var n=i(30630),o=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of s(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=r(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) @@ -1141,59 +1141,59 @@ var n={comments:{lineComment:"'",blockComment:["/*","*/"]},brackets:[["{","}"],[ * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ -var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]};function o(e){let t=[];const i=e.split(/\t+|\r+|\n+| +/);for(let n=0;n0&&t.push(i[n]);return t}var s=o("true false"),r=o("\n\t\t\t alias\n\t\t\t break\n\t\t\t case\n\t\t\t const\n\t\t\t const_assert\n\t\t\t continue\n\t\t\t continuing\n\t\t\t default\n\t\t\t diagnostic\n\t\t\t discard\n\t\t\t else\n\t\t\t enable\n\t\t\t fn\n\t\t\t for\n\t\t\t if\n\t\t\t let\n\t\t\t loop\n\t\t\t override\n\t\t\t requires\n\t\t\t return\n\t\t\t struct\n\t\t\t switch\n\t\t\t var\n\t\t\t while\n\t\t\t "),a=o("\n\t\t\t NULL\n\t\t\t Self\n\t\t\t abstract\n\t\t\t active\n\t\t\t alignas\n\t\t\t alignof\n\t\t\t as\n\t\t\t asm\n\t\t\t asm_fragment\n\t\t\t async\n\t\t\t attribute\n\t\t\t auto\n\t\t\t await\n\t\t\t become\n\t\t\t binding_array\n\t\t\t cast\n\t\t\t catch\n\t\t\t class\n\t\t\t co_await\n\t\t\t co_return\n\t\t\t co_yield\n\t\t\t coherent\n\t\t\t column_major\n\t\t\t common\n\t\t\t compile\n\t\t\t compile_fragment\n\t\t\t concept\n\t\t\t const_cast\n\t\t\t consteval\n\t\t\t constexpr\n\t\t\t constinit\n\t\t\t crate\n\t\t\t debugger\n\t\t\t decltype\n\t\t\t delete\n\t\t\t demote\n\t\t\t demote_to_helper\n\t\t\t do\n\t\t\t dynamic_cast\n\t\t\t enum\n\t\t\t explicit\n\t\t\t export\n\t\t\t extends\n\t\t\t extern\n\t\t\t external\n\t\t\t fallthrough\n\t\t\t filter\n\t\t\t final\n\t\t\t finally\n\t\t\t friend\n\t\t\t from\n\t\t\t fxgroup\n\t\t\t get\n\t\t\t goto\n\t\t\t groupshared\n\t\t\t highp\n\t\t\t impl\n\t\t\t implements\n\t\t\t import\n\t\t\t inline\n\t\t\t instanceof\n\t\t\t interface\n\t\t\t layout\n\t\t\t lowp\n\t\t\t macro\n\t\t\t macro_rules\n\t\t\t match\n\t\t\t mediump\n\t\t\t meta\n\t\t\t mod\n\t\t\t module\n\t\t\t move\n\t\t\t mut\n\t\t\t mutable\n\t\t\t namespace\n\t\t\t new\n\t\t\t nil\n\t\t\t noexcept\n\t\t\t noinline\n\t\t\t nointerpolation\n\t\t\t noperspective\n\t\t\t null\n\t\t\t nullptr\n\t\t\t of\n\t\t\t operator\n\t\t\t package\n\t\t\t packoffset\n\t\t\t partition\n\t\t\t pass\n\t\t\t patch\n\t\t\t pixelfragment\n\t\t\t precise\n\t\t\t precision\n\t\t\t premerge\n\t\t\t priv\n\t\t\t protected\n\t\t\t pub\n\t\t\t public\n\t\t\t readonly\n\t\t\t ref\n\t\t\t regardless\n\t\t\t register\n\t\t\t reinterpret_cast\n\t\t\t require\n\t\t\t resource\n\t\t\t restrict\n\t\t\t self\n\t\t\t set\n\t\t\t shared\n\t\t\t sizeof\n\t\t\t smooth\n\t\t\t snorm\n\t\t\t static\n\t\t\t static_assert\n\t\t\t static_cast\n\t\t\t std\n\t\t\t subroutine\n\t\t\t super\n\t\t\t target\n\t\t\t template\n\t\t\t this\n\t\t\t thread_local\n\t\t\t throw\n\t\t\t trait\n\t\t\t try\n\t\t\t type\n\t\t\t typedef\n\t\t\t typeid\n\t\t\t typename\n\t\t\t typeof\n\t\t\t union\n\t\t\t unless\n\t\t\t unorm\n\t\t\t unsafe\n\t\t\t unsized\n\t\t\t use\n\t\t\t using\n\t\t\t varying\n\t\t\t virtual\n\t\t\t volatile\n\t\t\t wgsl\n\t\t\t where\n\t\t\t with\n\t\t\t writeonly\n\t\t\t yield\n\t\t\t "),l=o("\n\t\tread write read_write\n\t\tfunction private workgroup uniform storage\n\t\tperspective linear flat\n\t\tcenter centroid sample\n\t\tvertex_index instance_index position front_facing frag_depth\n\t\t\tlocal_invocation_id local_invocation_index\n\t\t\tglobal_invocation_id workgroup_id num_workgroups\n\t\t\tsample_index sample_mask\n\t\trgba8unorm\n\t\trgba8snorm\n\t\trgba8uint\n\t\trgba8sint\n\t\trgba16uint\n\t\trgba16sint\n\t\trgba16float\n\t\tr32uint\n\t\tr32sint\n\t\tr32float\n\t\trg32uint\n\t\trg32sint\n\t\trg32float\n\t\trgba32uint\n\t\trgba32sint\n\t\trgba32float\n\t\tbgra8unorm\n"),c=o("\n\t\tbool\n\t\tf16\n\t\tf32\n\t\ti32\n\t\tsampler sampler_comparison\n\t\ttexture_depth_2d\n\t\ttexture_depth_2d_array\n\t\ttexture_depth_cube\n\t\ttexture_depth_cube_array\n\t\ttexture_depth_multisampled_2d\n\t\ttexture_external\n\t\ttexture_external\n\t\tu32\n\t\t"),d=o("\n\t\tarray\n\t\tatomic\n\t\tmat2x2\n\t\tmat2x3\n\t\tmat2x4\n\t\tmat3x2\n\t\tmat3x3\n\t\tmat3x4\n\t\tmat4x2\n\t\tmat4x3\n\t\tmat4x4\n\t\tptr\n\t\ttexture_1d\n\t\ttexture_2d\n\t\ttexture_2d_array\n\t\ttexture_3d\n\t\ttexture_cube\n\t\ttexture_cube_array\n\t\ttexture_multisampled_2d\n\t\ttexture_storage_1d\n\t\ttexture_storage_2d\n\t\ttexture_storage_2d_array\n\t\ttexture_storage_3d\n\t\tvec2\n\t\tvec3\n\t\tvec4\n\t\t"),u=o("\n\t\tvec2i vec3i vec4i\n\t\tvec2u vec3u vec4u\n\t\tvec2f vec3f vec4f\n\t\tvec2h vec3h vec4h\n\t\tmat2x2f mat2x3f mat2x4f\n\t\tmat3x2f mat3x3f mat3x4f\n\t\tmat4x2f mat4x3f mat4x4f\n\t\tmat2x2h mat2x3h mat2x4h\n\t\tmat3x2h mat3x3h mat3x4h\n\t\tmat4x2h mat4x3h mat4x4h\n\t\t"),h=o("\n bitcast all any select arrayLength abs acos acosh asin asinh atan atanh atan2\n ceil clamp cos cosh countLeadingZeros countOneBits countTrailingZeros cross\n degrees determinant distance dot exp exp2 extractBits faceForward firstLeadingBit\n firstTrailingBit floor fma fract frexp inverseBits inverseSqrt ldexp length\n log log2 max min mix modf normalize pow quantizeToF16 radians reflect refract\n reverseBits round saturate sign sin sinh smoothstep sqrt step tan tanh transpose\n trunc dpdx dpdxCoarse dpdxFine dpdy dpdyCoarse dpdyFine fwidth fwidthCoarse fwidthFine\n textureDimensions textureGather textureGatherCompare textureLoad textureNumLayers\n textureNumLevels textureNumSamples textureSample textureSampleBias textureSampleCompare\n textureSampleCompareLevel textureSampleGrad textureSampleLevel textureSampleBaseClampToEdge\n textureStore atomicLoad atomicStore atomicAdd atomicSub atomicMax atomicMin\n atomicAnd atomicOr atomicXor atomicExchange atomicCompareExchangeWeak pack4x8snorm\n pack4x8unorm pack2x16snorm pack2x16unorm pack2x16float unpack4x8snorm unpack4x8unorm\n unpack2x16snorm unpack2x16unorm unpack2x16float storageBarrier workgroupBarrier\n workgroupUniformLoad\n"),g=o("\n\t\t\t\t\t &\n\t\t\t\t\t &&\n\t\t\t\t\t ->\n\t\t\t\t\t /\n\t\t\t\t\t =\n\t\t\t\t\t ==\n\t\t\t\t\t !=\n\t\t\t\t\t >\n\t\t\t\t\t >=\n\t\t\t\t\t <\n\t\t\t\t\t <=\n\t\t\t\t\t %\n\t\t\t\t\t -\n\t\t\t\t\t --\n\t\t\t\t\t +\n\t\t\t\t\t ++\n\t\t\t\t\t |\n\t\t\t\t\t ||\n\t\t\t\t\t *\n\t\t\t\t\t <<\n\t\t\t\t\t >>\n\t\t\t\t\t +=\n\t\t\t\t\t -=\n\t\t\t\t\t *=\n\t\t\t\t\t /=\n\t\t\t\t\t %=\n\t\t\t\t\t &=\n\t\t\t\t\t |=\n\t\t\t\t\t ^=\n\t\t\t\t\t >>=\n\t\t\t\t\t <<=\n\t\t\t\t\t "),p=/enable|requires|diagnostic/,f=/[_\p{XID_Start}]\p{XID_Continue}*/u,m="variable.predefined",v={tokenPostfix:".wgsl",defaultToken:"invalid",unicode:!0,atoms:s,keywords:r,reserved:a,predeclared_enums:l,predeclared_types:c,predeclared_type_generators:d,predeclared_type_aliases:u,predeclared_intrinsics:h,operators:g,symbols:/[!%&*+\-\.\/:;<=>^|_~,]+/,tokenizer:{root:[[p,"keyword","@directive"],[f,{cases:{"@atoms":m,"@keywords":"keyword","@reserved":"invalid","@predeclared_enums":m,"@predeclared_types":m,"@predeclared_type_generators":m,"@predeclared_type_aliases":m,"@predeclared_intrinsics":m,"@default":"identifier"}}],{include:"@commentOrSpace"},{include:"@numbers"},[/[{}()\[\]]/,"@brackets"],["@","annotation","@attribute"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/./,"invalid"]],commentOrSpace:[[/\s+/,"white"],[/\/\*/,"comment","@blockComment"],[/\/\/.*$/,"comment"]],blockComment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],attribute:[{include:"@commentOrSpace"},[/\w+/,"annotation","@pop"]],directive:[{include:"@commentOrSpace"},[/[()]/,"@brackets"],[/,/,"delimiter"],[f,"meta.content"],[/;/,"delimiter","@pop"]],numbers:[[/0[fh]/,"number.float"],[/[1-9][0-9]*[fh]/,"number.float"],[/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+[eE][+-]?[0-9]+[fh]?/,"number.float"],[/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/,"number.hex"],[/0[xX][0-9a-fA-F]+[iu]?/,"number.hex"],[/[1-9][0-9]*[iu]?/,"number"],[/0[iu]?/,"number"]]}}},98955:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>u,language:()=>h});var n=i(30630),o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of r(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; +var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]};function o(e){let t=[];const i=e.split(/\t+|\r+|\n+| +/);for(let n=0;n0&&t.push(i[n]);return t}var r=o("true false"),s=o("\n\t\t\t alias\n\t\t\t break\n\t\t\t case\n\t\t\t const\n\t\t\t const_assert\n\t\t\t continue\n\t\t\t continuing\n\t\t\t default\n\t\t\t diagnostic\n\t\t\t discard\n\t\t\t else\n\t\t\t enable\n\t\t\t fn\n\t\t\t for\n\t\t\t if\n\t\t\t let\n\t\t\t loop\n\t\t\t override\n\t\t\t requires\n\t\t\t return\n\t\t\t struct\n\t\t\t switch\n\t\t\t var\n\t\t\t while\n\t\t\t "),a=o("\n\t\t\t NULL\n\t\t\t Self\n\t\t\t abstract\n\t\t\t active\n\t\t\t alignas\n\t\t\t alignof\n\t\t\t as\n\t\t\t asm\n\t\t\t asm_fragment\n\t\t\t async\n\t\t\t attribute\n\t\t\t auto\n\t\t\t await\n\t\t\t become\n\t\t\t binding_array\n\t\t\t cast\n\t\t\t catch\n\t\t\t class\n\t\t\t co_await\n\t\t\t co_return\n\t\t\t co_yield\n\t\t\t coherent\n\t\t\t column_major\n\t\t\t common\n\t\t\t compile\n\t\t\t compile_fragment\n\t\t\t concept\n\t\t\t const_cast\n\t\t\t consteval\n\t\t\t constexpr\n\t\t\t constinit\n\t\t\t crate\n\t\t\t debugger\n\t\t\t decltype\n\t\t\t delete\n\t\t\t demote\n\t\t\t demote_to_helper\n\t\t\t do\n\t\t\t dynamic_cast\n\t\t\t enum\n\t\t\t explicit\n\t\t\t export\n\t\t\t extends\n\t\t\t extern\n\t\t\t external\n\t\t\t fallthrough\n\t\t\t filter\n\t\t\t final\n\t\t\t finally\n\t\t\t friend\n\t\t\t from\n\t\t\t fxgroup\n\t\t\t get\n\t\t\t goto\n\t\t\t groupshared\n\t\t\t highp\n\t\t\t impl\n\t\t\t implements\n\t\t\t import\n\t\t\t inline\n\t\t\t instanceof\n\t\t\t interface\n\t\t\t layout\n\t\t\t lowp\n\t\t\t macro\n\t\t\t macro_rules\n\t\t\t match\n\t\t\t mediump\n\t\t\t meta\n\t\t\t mod\n\t\t\t module\n\t\t\t move\n\t\t\t mut\n\t\t\t mutable\n\t\t\t namespace\n\t\t\t new\n\t\t\t nil\n\t\t\t noexcept\n\t\t\t noinline\n\t\t\t nointerpolation\n\t\t\t noperspective\n\t\t\t null\n\t\t\t nullptr\n\t\t\t of\n\t\t\t operator\n\t\t\t package\n\t\t\t packoffset\n\t\t\t partition\n\t\t\t pass\n\t\t\t patch\n\t\t\t pixelfragment\n\t\t\t precise\n\t\t\t precision\n\t\t\t premerge\n\t\t\t priv\n\t\t\t protected\n\t\t\t pub\n\t\t\t public\n\t\t\t readonly\n\t\t\t ref\n\t\t\t regardless\n\t\t\t register\n\t\t\t reinterpret_cast\n\t\t\t require\n\t\t\t resource\n\t\t\t restrict\n\t\t\t self\n\t\t\t set\n\t\t\t shared\n\t\t\t sizeof\n\t\t\t smooth\n\t\t\t snorm\n\t\t\t static\n\t\t\t static_assert\n\t\t\t static_cast\n\t\t\t std\n\t\t\t subroutine\n\t\t\t super\n\t\t\t target\n\t\t\t template\n\t\t\t this\n\t\t\t thread_local\n\t\t\t throw\n\t\t\t trait\n\t\t\t try\n\t\t\t type\n\t\t\t typedef\n\t\t\t typeid\n\t\t\t typename\n\t\t\t typeof\n\t\t\t union\n\t\t\t unless\n\t\t\t unorm\n\t\t\t unsafe\n\t\t\t unsized\n\t\t\t use\n\t\t\t using\n\t\t\t varying\n\t\t\t virtual\n\t\t\t volatile\n\t\t\t wgsl\n\t\t\t where\n\t\t\t with\n\t\t\t writeonly\n\t\t\t yield\n\t\t\t "),l=o("\n\t\tread write read_write\n\t\tfunction private workgroup uniform storage\n\t\tperspective linear flat\n\t\tcenter centroid sample\n\t\tvertex_index instance_index position front_facing frag_depth\n\t\t\tlocal_invocation_id local_invocation_index\n\t\t\tglobal_invocation_id workgroup_id num_workgroups\n\t\t\tsample_index sample_mask\n\t\trgba8unorm\n\t\trgba8snorm\n\t\trgba8uint\n\t\trgba8sint\n\t\trgba16uint\n\t\trgba16sint\n\t\trgba16float\n\t\tr32uint\n\t\tr32sint\n\t\tr32float\n\t\trg32uint\n\t\trg32sint\n\t\trg32float\n\t\trgba32uint\n\t\trgba32sint\n\t\trgba32float\n\t\tbgra8unorm\n"),c=o("\n\t\tbool\n\t\tf16\n\t\tf32\n\t\ti32\n\t\tsampler sampler_comparison\n\t\ttexture_depth_2d\n\t\ttexture_depth_2d_array\n\t\ttexture_depth_cube\n\t\ttexture_depth_cube_array\n\t\ttexture_depth_multisampled_2d\n\t\ttexture_external\n\t\ttexture_external\n\t\tu32\n\t\t"),d=o("\n\t\tarray\n\t\tatomic\n\t\tmat2x2\n\t\tmat2x3\n\t\tmat2x4\n\t\tmat3x2\n\t\tmat3x3\n\t\tmat3x4\n\t\tmat4x2\n\t\tmat4x3\n\t\tmat4x4\n\t\tptr\n\t\ttexture_1d\n\t\ttexture_2d\n\t\ttexture_2d_array\n\t\ttexture_3d\n\t\ttexture_cube\n\t\ttexture_cube_array\n\t\ttexture_multisampled_2d\n\t\ttexture_storage_1d\n\t\ttexture_storage_2d\n\t\ttexture_storage_2d_array\n\t\ttexture_storage_3d\n\t\tvec2\n\t\tvec3\n\t\tvec4\n\t\t"),u=o("\n\t\tvec2i vec3i vec4i\n\t\tvec2u vec3u vec4u\n\t\tvec2f vec3f vec4f\n\t\tvec2h vec3h vec4h\n\t\tmat2x2f mat2x3f mat2x4f\n\t\tmat3x2f mat3x3f mat3x4f\n\t\tmat4x2f mat4x3f mat4x4f\n\t\tmat2x2h mat2x3h mat2x4h\n\t\tmat3x2h mat3x3h mat3x4h\n\t\tmat4x2h mat4x3h mat4x4h\n\t\t"),h=o("\n bitcast all any select arrayLength abs acos acosh asin asinh atan atanh atan2\n ceil clamp cos cosh countLeadingZeros countOneBits countTrailingZeros cross\n degrees determinant distance dot exp exp2 extractBits faceForward firstLeadingBit\n firstTrailingBit floor fma fract frexp inverseBits inverseSqrt ldexp length\n log log2 max min mix modf normalize pow quantizeToF16 radians reflect refract\n reverseBits round saturate sign sin sinh smoothstep sqrt step tan tanh transpose\n trunc dpdx dpdxCoarse dpdxFine dpdy dpdyCoarse dpdyFine fwidth fwidthCoarse fwidthFine\n textureDimensions textureGather textureGatherCompare textureLoad textureNumLayers\n textureNumLevels textureNumSamples textureSample textureSampleBias textureSampleCompare\n textureSampleCompareLevel textureSampleGrad textureSampleLevel textureSampleBaseClampToEdge\n textureStore atomicLoad atomicStore atomicAdd atomicSub atomicMax atomicMin\n atomicAnd atomicOr atomicXor atomicExchange atomicCompareExchangeWeak pack4x8snorm\n pack4x8unorm pack2x16snorm pack2x16unorm pack2x16float unpack4x8snorm unpack4x8unorm\n unpack2x16snorm unpack2x16unorm unpack2x16float storageBarrier workgroupBarrier\n workgroupUniformLoad\n"),g=o("\n\t\t\t\t\t &\n\t\t\t\t\t &&\n\t\t\t\t\t ->\n\t\t\t\t\t /\n\t\t\t\t\t =\n\t\t\t\t\t ==\n\t\t\t\t\t !=\n\t\t\t\t\t >\n\t\t\t\t\t >=\n\t\t\t\t\t <\n\t\t\t\t\t <=\n\t\t\t\t\t %\n\t\t\t\t\t -\n\t\t\t\t\t --\n\t\t\t\t\t +\n\t\t\t\t\t ++\n\t\t\t\t\t |\n\t\t\t\t\t ||\n\t\t\t\t\t *\n\t\t\t\t\t <<\n\t\t\t\t\t >>\n\t\t\t\t\t +=\n\t\t\t\t\t -=\n\t\t\t\t\t *=\n\t\t\t\t\t /=\n\t\t\t\t\t %=\n\t\t\t\t\t &=\n\t\t\t\t\t |=\n\t\t\t\t\t ^=\n\t\t\t\t\t >>=\n\t\t\t\t\t <<=\n\t\t\t\t\t "),p=/enable|requires|diagnostic/,f=/[_\p{XID_Start}]\p{XID_Continue}*/u,m="variable.predefined",v={tokenPostfix:".wgsl",defaultToken:"invalid",unicode:!0,atoms:r,keywords:s,reserved:a,predeclared_enums:l,predeclared_types:c,predeclared_type_generators:d,predeclared_type_aliases:u,predeclared_intrinsics:h,operators:g,symbols:/[!%&*+\-\.\/:;<=>^|_~,]+/,tokenizer:{root:[[p,"keyword","@directive"],[f,{cases:{"@atoms":m,"@keywords":"keyword","@reserved":"invalid","@predeclared_enums":m,"@predeclared_types":m,"@predeclared_type_generators":m,"@predeclared_type_aliases":m,"@predeclared_intrinsics":m,"@default":"identifier"}}],{include:"@commentOrSpace"},{include:"@numbers"},[/[{}()\[\]]/,"@brackets"],["@","annotation","@attribute"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/./,"invalid"]],commentOrSpace:[[/\s+/,"white"],[/\/\*/,"comment","@blockComment"],[/\/\/.*$/,"comment"]],blockComment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],attribute:[{include:"@commentOrSpace"},[/\w+/,"annotation","@pop"]],directive:[{include:"@commentOrSpace"},[/[()]/,"@brackets"],[/,/,"delimiter"],[f,"meta.content"],[/;/,"delimiter","@pop"]],numbers:[[/0[fh]/,"number.float"],[/[1-9][0-9]*[fh]/,"number.float"],[/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+[eE][+-]?[0-9]+[fh]?/,"number.float"],[/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/,"number.hex"],[/0[xX][0-9a-fA-F]+[iu]?/,"number.hex"],[/[1-9][0-9]*[iu]?/,"number"],[/0[iu]?/,"number"]]}}},98955:(e,t,i)=>{"use strict";i.r(t),i.d(t,{conf:()=>u,language:()=>h});var n=i(30630),o=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of s(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=r(t,l))||n.enumerable});return e},c=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default")),d={}; /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/c(d,n);var u={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:d.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:d.languages.IndentAction.Indent}}]},h={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[//,{token:"comment",next:"@pop"}],[/